From: Johannes Berg Date: Mon, 17 Aug 2009 10:51:58 +0000 (+0200) Subject: also fix %d -> %u for 'iw link' X-Git-Tag: v0.9.17~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26181415b316bf33b50cfeb099dee7b1fa31ebec;p=thirdparty%2Fiw.git also fix %d -> %u for 'iw link' --- diff --git a/link.c b/link.c index dcb7a83..03acf58 100644 --- 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])