diff options
| author | Anton Arapov <[email protected]> | 2011-01-13 00:59:49 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-01-13 16:03:10 +0000 |
| commit | b921c69fb262988ff7856493a8453661a1bac814 (patch) | |
| tree | 87496b306fb609adcbf65b2fe5151a49e0957ca6 /lib/flex_array.c | |
| parent | include/linux/printk.h: use tab not spaces for indent (diff) | |
| download | kernel-b921c69fb262988ff7856493a8453661a1bac814.tar.gz kernel-b921c69fb262988ff7856493a8453661a1bac814.zip | |
lib/vsprintf.c: fix vscnprintf() if @size is == 0
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 ("lib: fix scnprintf() if @size
is == 0") moves the real fix into vscnprinf() from scnprintf() and makes
scnprintf() call vscnprintf(), thus avoid code duplication.
Signed-off-by: Anton Arapov <[email protected]>
Acked-by: Changli Gao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions
