From 38a0774ef8f4b99973a59fc1ec529a41dfc59ea6 Mon Sep 17 00:00:00 2001 From: Levente Meszaros Date: Wed, 15 May 2024 16:19:56 +0200 Subject: [PATCH] Packet: Fixed printing packets with empty data part. --- src/inet/common/packet/Packet.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inet/common/packet/Packet.cc b/src/inet/common/packet/Packet.cc index 2c7f78191bc..6bf21ded17a 100644 --- a/src/inet/common/packet/Packet.cc +++ b/src/inet/common/packet/Packet.cc @@ -341,7 +341,7 @@ std::ostream& Packet::printToStream(std::ostream& stream, int level, int evFlags if (level <= PRINT_LEVEL_DETAIL) stream << EV_FAINT << "(" << className << ")" << EV_NORMAL; stream << EV_ITALIC << getName() << EV_NORMAL << " (" << getDataLength() << ") "; - peekData()->printToStream(stream, level + 1, evFlags); + peekData(Chunk::PF_ALLOW_EMPTY)->printToStream(stream, level + 1, evFlags); return stream; }