From: "John W. Linville" <linville@tuxdriver.com>
To: Kalle Valo <kvalo@qca.qualcomm.com>
Cc: ath6kl-devel@qca.qualcomm.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] ath6kl: fix size_t printf warnings
Date: Tue, 19 Mar 2013 09:30:37 -0400 [thread overview]
Message-ID: <20130319133036.GB2060@tuxdriver.com> (raw)
In-Reply-To: <87wqt3zfgw.fsf@kamboji.qca.qualcomm.com>
On Tue, Mar 19, 2013 at 03:28:15PM +0200, Kalle Valo wrote:
> Kalle Valo <kvalo@qca.qualcomm.com> writes:
>
> > My new tracing code for ath6kl introduced these warnings on 64-bit:
> >
> > trace.h:38:1: warning: format '%d' expects argument of type 'int',
> > but argument 4 has type 'size_t' [-Wformat]
> > trace.h:61:1: warning: format '%d' expects argument of type 'int',
> > but argument 4 has type 'size_t' [-Wformat]
> > trace.h:84:1: warning: format '%d' expects argument of type 'int',
> > but argument 6 has type 'size_t' [-Wformat]
> > trace.h:119:1: warning: format '%d' expects argument of type 'int',
> > but argument 7 has type 'size_t' [-Wformat]
> > trace.h:173:1: warning: format '%d' expects argument of type 'int',
> > but argument 3 has type 'size_t' [-Wformat]
> > trace.h:193:1: warning: format '%d' expects argument of type 'int',
> > but argument 5 has type 'size_t' [-Wformat]
> > trace.h:221:1: warning: format '%d' expects argument of type 'int',
> > but argument 5 has type 'size_t' [-Wformat]
> >
> > Fix them by using %zd.
> >
> > Reported-by: John W. Linville <linville@tuxdriver.com>
> > Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
>
> John, can you take this directly so that we can fix the build warnings
> on your tree?
I'll take it, thanks -- may be several hours...
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
prev parent reply other threads:[~2013-03-19 13:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 13:25 [PATCH] ath6kl: fix size_t printf warnings Kalle Valo
2013-03-19 13:28 ` Kalle Valo
2013-03-19 13:30 ` John W. Linville [this message]
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=20130319133036.GB2060@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=ath6kl-devel@qca.qualcomm.com \
--cc=kvalo@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.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