]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
lib: fix scnprintf() if @size is == 0
authorChangli Gao <xiaosuo@gmail.com>
Tue, 26 Oct 2010 21:22:50 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:16 +0000 (16:52 -0700)
commitb903c0b8899b46829a9b80ba55b61079b35940ec
treec5fd68065bf1fe9d89c08d979fccfea4b78ba4f4
parent5e0579812834ab7fa072db4a15ebdff68d62e2e7
lib: fix scnprintf() if @size is == 0

scnprintf() should return 0 if @size is == 0. Update the comment for it,
as @size is unsigned.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c