Search Linux Wireless

Re: [PATCH] ath6kl: fix size_t printf warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 19, 2013 at 03:28:15PM +0200, Kalle Valo wrote:
> Kalle Valo <kvalo@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>
> > Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxxxxxxxx>
> 
> 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@xxxxxxxxxxxxx			might be all we have.  Be ready.
--
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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux