From: Johannes Berg <johannes@sipsolutions.net>
To: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
nbd@openwrt.org, helmut.schaa@googlemail.com,
Senthilkumar Balasubramanian
<Senthilkumar.Balasubramanian@Atheros.com>
Subject: Re: [PATCH] {mac|nl}80211: Add station connected time
Date: Fri, 15 Apr 2011 09:29:56 +0200 [thread overview]
Message-ID: <1302852596.3572.4.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1302278064-18403-1-git-send-email-mshajakhan@atheros.com>
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
next prev parent reply other threads:[~2011-04-15 7:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 15:54 [PATCH] {mac|nl}80211: Add station connected time Mohammed Shafi Shajakhan
2011-04-15 7:29 ` Johannes Berg [this message]
2011-04-18 4:17 ` Mohammed Shafi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302852596.3572.4.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=Senthilkumar.Balasubramanian@Atheros.com \
--cc=helmut.schaa@googlemail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mshajakhan@atheros.com \
--cc=nbd@openwrt.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).