Skip to content
Snippets Groups Projects
Commit 4a454743 authored by brutzman's avatar brutzman
Browse files

include pdu type value (1..72) in output

parent 8d561798
No related branches found
No related tags found
No related merge requests found
...@@ -52,11 +52,12 @@ public class PduReceiver ...@@ -52,11 +52,12 @@ public class PduReceiver
String currentPduFamilyName = pdu.getClass().getSuperclass().getSimpleName(); String currentPduFamilyName = pdu.getClass().getSuperclass().getSimpleName();
StringBuilder message = new StringBuilder(); StringBuilder message = new StringBuilder();
message.append("received DIS PDU: "); message.append("received DIS PDU ");
message.append("pduType ");
if (currentPduType.getValue() < 10) if (currentPduType.getValue() < 10)
message.append(" "); message.append(" ");
message.append(currentPduType).append(" ").append(currentPduTypeName); message.append(currentPduType.getValue());
message.append(" ").append(currentPduType);
message.append(" ").append(currentPduTypeName);
message.append(", protocolFamily ").append(currentProtocolFamilyID); message.append(", protocolFamily ").append(currentProtocolFamilyID);
message.append(" ").append(currentPduFamilyName); message.append(" ").append(currentPduFamilyName);
System.out.println(message.toString()); System.out.println(message.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment