]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
shorten TX/RX frame type output
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Mar 2012 08:48:23 +0000 (09:48 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Mar 2012 08:48:23 +0000 (09:48 +0100)
info.c

diff --git a/info.c b/info.c
index 0950bd1be87ff0333c1ace99a2bda50a6a2ce602..e896eb507b3985963cb0d3dc120682467b46e45b 100644 (file)
--- 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");