From e7b13fc40050f46702d6ef0091bb79a7b5a93a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 6 Apr 2011 07:49:04 -0700 Subject: [PATCH] --- yaml --- r: 248550 b: refs/heads/master c: ba1835eb30a80a0e8a1c33724735f3a99a957cff h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/lib/vsprintf.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 2807e0f42535..c7648f47688b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5a3016a61530ea171c1b8ab23d7f651de919e39f +refs/heads/master: ba1835eb30a80a0e8a1c33724735f3a99a957cff diff --git a/trunk/lib/vsprintf.c b/trunk/lib/vsprintf.c index d3023df8477f..bba9caa375d0 100644 --- a/trunk/lib/vsprintf.c +++ b/trunk/lib/vsprintf.c @@ -1301,8 +1301,7 @@ int format_decode(const char *fmt, struct printf_spec *spec) * 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. */