[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTinG7tZX5E3HG9yyj8JQrH5dkwei0GLxhCqWHWTQ@mail.gmail.com>
Date: Mon, 13 Dec 2010 22:25:26 +0800
From: Changli Gao <xiaosuo@...il.com>
To: Anton Arapov <aarapov@...hat.com>
Cc: linux-kernel@...r.kernel.org,
"Changli Gao <xiaosuo@...il.com>, Andrew Morton
<akpm@...ux-foundation.org>, Linus Torvalds"
<torvalds@...ux-foundation.org>
Subject: Re: [PATCH] lib: fix vscnprintf() if @size is == 0
On Mon, Dec 13, 2010 at 10:05 PM, Anton Arapov <aarapov@...hat.com> wrote:
> vscnprintf() should return 0 if @size is == 0. Update the comment for it,
> as @size is unsigned.
>
> This change based on the code of commit b903c0b8899b46829a9b80ba55b61079b35940ec
> moves the real fix into vscnprinf() from scnprintf() and makes scnprintf() call
> vscnprintf(), thus avoid code duplication.
>
> Signed-off-by: Anton Arapov <aarapov@...hat.com>
Acked-by: Changli Gao <xiaosuo@...il.com>
--
Regards,
Changli Gao(xiaosuo@...il.com)
--
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