Commit 43b42c35 authored by Adam Wujek's avatar Adam Wujek

tools/wrpc-dump: if needed, swap bytes of ClockIdentity.portNumber

Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent 62b2d62f
......@@ -283,7 +283,8 @@ void dump_one_field(void *addr, struct dump_info *info, char *info_prefix)
for (i = 0; i < sizeof(ClockIdentity); i++)
printf("%02x%c", ((unsigned char *)p)[i],
i == sizeof(ClockIdentity) - 1 ? '.' : ':');
printf("%04x (%i)\n", pi->portNumber, pi->portNumber);
printf("%04x (%i)\n", wrpc_get_16(&pi->portNumber),
wrpc_get_16(&pi->portNumber));
break;
case dump_type_ClockQuality:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment