Permalink
Browse files

shorten TX/RX frame type output

  • Loading branch information...
1 parent 135e65d commit 58e343418820598cb58bd4bc7d5694e811a86972 @jmberg jmberg committed Mar 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 info.c
View
4 info.c
@@ -319,7 +319,7 @@ static int print_phy_handler(struct nl_msg *msg, void *arg)
if (!printed)
printf("\t\t * %s:", iftype_name(nla_type(nl_if)));
printed = true;
- printf(" 0x%.4x", nla_get_u16(nl_ftype));
+ printf(" 0x%.2x", nla_get_u16(nl_ftype));
}
if (printed)
printf("\n");
@@ -334,7 +334,7 @@ static int print_phy_handler(struct nl_msg *msg, void *arg)
if (!printed)
printf("\t\t * %s:", iftype_name(nla_type(nl_if)));
printed = true;
- printf(" 0x%.4x", nla_get_u16(nl_ftype));
+ printf(" 0x%.2x", nla_get_u16(nl_ftype));
}
if (printed)
printf("\n");

0 comments on commit 58e3434

Please sign in to comment.