diff options
author | Martin Peschke <mp3@de.ibm.com> | 2007-02-12 00:51:56 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 09:48:28 -0800 |
commit | ea6f3281a145d16ed53e88b0627f78d5cde6068f (patch) | |
tree | 75aa9f225b73cb7bdcca87e42462f03c0d8f612e /lib/vsprintf.c | |
parent | 91dd26ad2c04a1bbf179df4dca98f34db2f70716 (diff) | |
download | kernel_samsung_smdk4412-ea6f3281a145d16ed53e88b0627f78d5cde6068f.tar.gz kernel_samsung_smdk4412-ea6f3281a145d16ed53e88b0627f78d5cde6068f.tar.bz2 kernel_samsung_smdk4412-ea6f3281a145d16ed53e88b0627f78d5cde6068f.zip |
[PATCH] scnprintf(): fix a comment
The return value of scnprintf() never exceeds @size.
Signed-off-by: Martin Peschke <mp3@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r-- | lib/vsprintf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 44f0e339a94..b025864d2e4 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -554,8 +554,7 @@ EXPORT_SYMBOL(snprintf); * @...: Arguments for the format string * * The return value is the number of characters written into @buf not including - * the trailing '\0'. If @size is <= 0 the function returns 0. If the return is - * greater than or equal to @size, the resulting string is truncated. + * the trailing '\0'. If @size is <= 0 the function returns 0. */ int scnprintf(char * buf, size_t size, const char *fmt, ...) |