Re: [patch] ath6kl: use a larger buffer for debug output

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

 



On Mon, Nov 21, 2011 at 06:55:11PM +0200, Kalle Valo wrote:
> >>  	len = snprintf(buf, sizeof(buf), "%u %u\n", ar->listen_intvl_t,
> >>  					ar->listen_intvl_b);
> >> +	len = min(sizeof(buf), len);
> > 
> > Maybe that should be scnprintf instead then?
> 
> Yeah, I agree. And most likely debug.c has even more cases where
> scnprintf() is needed.
> 

Yes yes.  Obviously.  I sent the patch at 5 pm on Friday and lost
track of it for a bit.  I'll send a fixed version tomorrow morning.

regards,
dan carpenter

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux