]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
also fix %d -> %u for 'iw link'
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 17 Aug 2009 10:51:58 +0000 (12:51 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Mon, 17 Aug 2009 10:51:58 +0000 (12:51 +0200)
link.c

diff --git a/link.c b/link.c
index dcb7a83a71914e46ac8fab9b13f9ea2f9329e2fc..03acf581f2d3fddc813d83d4e9c03946ed5b97cc 100644 (file)
--- a/link.c
+++ b/link.c
@@ -149,11 +149,11 @@ static int print_link_sta(struct nl_msg *msg, void *arg)
        }
 
        if (sinfo[NL80211_STA_INFO_RX_BYTES] && sinfo[NL80211_STA_INFO_RX_PACKETS])
-               printf("\tRX: %d bytes (%d packets)\n",
+               printf("\tRX: %u bytes (%u packets)\n",
                        nla_get_u32(sinfo[NL80211_STA_INFO_RX_BYTES]),
                        nla_get_u32(sinfo[NL80211_STA_INFO_RX_PACKETS]));
        if (sinfo[NL80211_STA_INFO_TX_BYTES] && sinfo[NL80211_STA_INFO_TX_PACKETS])
-               printf("\tTX: %d bytes (%d packets)\n",
+               printf("\tTX: %u bytes (%u packets)\n",
                        nla_get_u32(sinfo[NL80211_STA_INFO_TX_BYTES]),
                        nla_get_u32(sinfo[NL80211_STA_INFO_TX_PACKETS]));
        if (sinfo[NL80211_STA_INFO_SIGNAL])