From: Johannes Berg Date: Tue, 13 Mar 2012 08:48:23 +0000 (+0100) Subject: shorten TX/RX frame type output X-Git-Tag: v3.4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e343418820598cb58bd4bc7d5694e811a86972;p=thirdparty%2Fiw.git shorten TX/RX frame type output --- diff --git a/info.c b/info.c index 0950bd1..e896eb5 100644 --- a/info.c +++ b/info.c @@ -319,7 +319,7 @@ broken_combination: 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 @@ broken_combination: 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");