Re: [patch 2/3] remoteproc: snprintf() can return more than was printed

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

 



On Tue, Sep 25, 2012 at 9:02 AM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
> snprintf() returns the number of characters which would have been
> printed if there were enough space.  For example, on the first print if
> we fill up the 28 character string then it would return a number more
> than 30.  Use scnprintf() instead because that returns the actual number
> of characters printed.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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