diff mbox series

[U-Boot,1/1] vsprintf: vsprintf does not have parameter size

Message ID 20170906155513.5846-1-xypron.glpk@gmx.de
State Accepted
Commit de2de3192fe1bde742d0d83d82f90a1592ec47c6
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/1] vsprintf: vsprintf does not have parameter size | expand

Commit Message

Heinrich Schuchardt Sept. 6, 2017, 3:55 p.m. UTC
The inline documentation of vsprintf mentions a parameter size
which does not exist in the function declaration.

int vsprintf(char *buf, const char *fmt, va_list args);

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 include/vsprintf.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Tom Rini Sept. 8, 2017, 12:02 a.m. UTC | #1
On Wed, Sep 06, 2017 at 05:55:13PM +0200, Heinrich Schuchardt wrote:

> The inline documentation of vsprintf mentions a parameter size
> which does not exist in the function declaration.
> 
> int vsprintf(char *buf, const char *fmt, va_list args);
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/vsprintf.h b/include/vsprintf.h
index e38076d22d..490c96ca6d 100644
--- a/include/vsprintf.h
+++ b/include/vsprintf.h
@@ -112,12 +112,10 @@  int sprintf(char *buf, const char *fmt, ...)
  * Format a string and place it in a buffer (va_list version)
  *
  * @param buf	The buffer to place the result into
- * @param size	The size of the buffer, including the trailing null space
  * @param fmt	The format string to use
  * @param args	Arguments for the format string
  * @return the number of characters which have been written into
- * the @buf not including the trailing '\0'. If @size is == 0 the function
- * returns 0.
+ * the @buf not including the trailing '\0'.
  *
  * If you're not already dealing with a va_list consider using scnprintf().
  *