diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-04-06 07:49:04 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-04-06 07:49:04 -0700 |
commit | ba1835eb30a80a0e8a1c33724735f3a99a957cff (patch) | |
tree | 8ff962d903dcf0c49d6547703e61b7e0f3a56680 | |
parent | 5a3016a61530ea171c1b8ab23d7f651de919e39f (diff) | |
download | linux-ba1835eb30a80a0e8a1c33724735f3a99a957cff.tar.gz linux-ba1835eb30a80a0e8a1c33724735f3a99a957cff.tar.bz2 linux-ba1835eb30a80a0e8a1c33724735f3a99a957cff.zip |
vsprintf: make comment about vs{n,cn,}printf more understandable
"You probably want ... instead." sounds like a recommendation better
not to use the v... functions.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | lib/vsprintf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index d3023df8477f..bba9caa375d0 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -1301,8 +1301,7 @@ qualifier: * return is greater than or equal to @size, the resulting * string is truncated. * - * Call this function if you are already dealing with a va_list. - * You probably want snprintf() instead. + * If you're not already dealing with a va_list consider using snprintf(). */ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) { @@ -1476,8 +1475,7 @@ EXPORT_SYMBOL(vsnprintf); * the @buf not including the trailing '\0'. If @size is == 0 the function * returns 0. * - * Call this function if you are already dealing with a va_list. - * You probably want scnprintf() instead. + * If you're not already dealing with a va_list consider using scnprintf(). * * See the vsnprintf() documentation for format string extensions over C99. */ @@ -1556,8 +1554,7 @@ EXPORT_SYMBOL(scnprintf); * into @buf. Use vsnprintf() or vscnprintf() in order to avoid * buffer overflows. * - * Call this function if you are already dealing with a va_list. - * You probably want sprintf() instead. + * If you're not already dealing with a va_list consider using sprintf(). * * See the vsnprintf() documentation for format string extensions over C99. */ |