[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110415162005.eba5e8f3.randy.dunlap@oracle.com>
Date: Fri, 15 Apr 2011 16:20:05 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
linux-wireless@...r.kernel.org
Cc: linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
linville@...driver.com
Subject: [PATCH -next] mac80211: fix debugfs printk format warning
From: Randy Dunlap <randy.dunlap@...cle.com>
Fix printf() format warning (tm_year is long int):
net/mac80211/debugfs_sta.c:113: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
net/mac80211/debugfs_sta.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20110415.orig/net/mac80211/debugfs_sta.c
+++ linux-next-20110415/net/mac80211/debugfs_sta.c
@@ -108,7 +108,7 @@ static ssize_t sta_connected_time_read(s
result.tm_year -= 70;
result.tm_mday -= 1;
res = scnprintf(buf, sizeof(buf),
- "years - %d\nmonths - %d\ndays - %d\nclock - %d:%d:%d\n\n",
+ "years - %ld\nmonths - %d\ndays - %d\nclock - %d:%d:%d\n\n",
result.tm_year, result.tm_mon, result.tm_mday,
result.tm_hour, result.tm_min, result.tm_sec);
return simple_read_from_buffer(userbuf, count, ppos, buf, res);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists