[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK=WgbbgWicLygZgkkiSYOrCorKJB6Xr71uLX_4F_ZNwmszc7A@mail.gmail.com>
Date: Sun, 30 Sep 2012 11:40:40 +0200
From: Ohad Ben-Cohen <ohad@...ery.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [patch 2/3] remoteproc: snprintf() can return more than was printed
On Tue, Sep 25, 2012 at 9:02 AM, Dan Carpenter <dan.carpenter@...cle.com> 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@...cle.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists