Commit 7762bb02ce13c191e0a2da159bcb8d9b374b88c4
Committed by
John W. Linville
1 parent
0477ad72a1
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/mac80211/debugfs_sta.c
... | ... | @@ -108,7 +108,7 @@ |
108 | 108 | result.tm_year -= 70; |
109 | 109 | result.tm_mday -= 1; |
110 | 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 | 112 | result.tm_year, result.tm_mon, result.tm_mday, |
113 | 113 | result.tm_hour, result.tm_min, result.tm_sec); |
114 | 114 | return simple_read_from_buffer(userbuf, count, ppos, buf, res); |