On Fri, 2011-04-08 at 21:24 +0530, Mohammed Shafi Shajakhan wrote: > +static ssize_t sta_connected_time_read(struct file *file, char __user *userbuf, > + size_t count, loff_t *ppos) > +{ > + struct sta_info *sta = file->private_data; > + struct timespec uptime; > + struct tm result; > + long connected_time_secs; > + char buf[100]; > + int res; > + do_posix_clock_monotonic_gettime(&uptime); > + connected_time_secs = uptime.tv_sec - sta->last_connected; > + time_to_tm(connected_time_secs, 0, &result); > + 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", > + result.tm_year, result.tm_mon, result.tm_mday, > + result.tm_hour, result.tm_min, result.tm_sec); net/mac80211/debugfs_sta.c: In function 'sta_connected_time_read': net/mac80211/debugfs_sta.c:113:4: warning: format '%d' expects type 'int', but argument 4 has type 'long int' Please fix. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html