Skip to content

Commit

Permalink
Packet: Fixed printing packets with empty data part.
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed May 15, 2024
1 parent d542106 commit 38a0774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inet/common/packet/Packet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 38a0774

Please sign in to comment.