aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_sta.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2011-04-15 19:20:05 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-19 15:38:03 -0400
commit7762bb02ce13c191e0a2da159bcb8d9b374b88c4 (patch)
treeb2dd344dadaee82ad49f5d8dc0ec318ba9eee438 /net/mac80211/debugfs_sta.c
parent0477ad72a12d4ee3f588de9349012948ea25702b (diff)
mac80211: fix debugfs printk format warning
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@oracle.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r--net/mac80211/debugfs_sta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c
index c008232731eb..a01d2137fddc 100644
--- a/net/mac80211/debugfs_sta.c
+++ b/net/mac80211/debugfs_sta.c
@@ -108,7 +108,7 @@ static ssize_t sta_connected_time_read(struct file *file, char __user *userbuf,
108 result.tm_year -= 70; 108 result.tm_year -= 70;
109 result.tm_mday -= 1; 109 result.tm_mday -= 1;
110 res = scnprintf(buf, sizeof(buf), 110 res = scnprintf(buf, sizeof(buf),
111 "years - %d\nmonths - %d\ndays - %d\nclock - %d:%d:%d\n\n", 111 "years - %ld\nmonths - %d\ndays - %d\nclock - %d:%d:%d\n\n",
112 result.tm_year, result.tm_mon, result.tm_mday, 112 result.tm_year, result.tm_mon, result.tm_mday,
113 result.tm_hour, result.tm_min, result.tm_sec); 113 result.tm_hour, result.tm_min, result.tm_sec);
114 return simple_read_from_buffer(userbuf, count, ppos, buf, res); 114 return simple_read_from_buffer(userbuf, count, ppos, buf, res);