X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fvsprintf.h;h=490c96ca6d1fcb32c4a0c0b3c0f53ba1f65f15c3;hb=0d7f1ae0fe6c0d9af2c0208aab4843ec3fdfaf52;hp=376f5dd32499d54eac281435b9ab24cf2aeb8c3f;hpb=82d72a1b9967cff4908f22c57536c3660f794401;p=u-boot diff --git a/include/vsprintf.h b/include/vsprintf.h index 376f5dd324..490c96ca6d 100644 --- a/include/vsprintf.h +++ b/include/vsprintf.h @@ -8,6 +8,8 @@ #ifndef __VSPRINTF_H #define __VSPRINTF_H +#include + ulong simple_strtoul(const char *cp, char **endp, unsigned int base); /** @@ -70,7 +72,7 @@ long trailing_strtoln(const char *str, const char *end); * panic() - Print a message and reset/hang * * Prints a message on the console(s) and then resets. If CONFIG_PANIC_HANG is - * defined, then it will hang instead of reseting. + * defined, then it will hang instead of resetting. * * @param fmt: printf() format string for message, which should not include * \n, followed by arguments @@ -82,7 +84,7 @@ void panic(const char *fmt, ...) * panic_str() - Print a message and reset/hang * * Prints a message on the console(s) and then resets. If CONFIG_PANIC_HANG is - * defined, then it will hang instead of reseting. + * defined, then it will hang instead of resetting. * * This function can be used instead of panic() when your board does not * already use printf(), * to keep code size small. @@ -110,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(). *