diff options
| author | Tom Rini <[email protected]> | 2021-11-12 10:14:24 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-11-12 10:14:24 -0500 |
| commit | 515bf78ff975d474f895bf86b4e16eade51c8dbd (patch) | |
| tree | 49114762efa8154f2a2f75d8718cf650e7f0fc09 /include/vsprintf.h | |
| parent | 1e72ad6b387c599f477f83cda67ab525c089a9b0 (diff) | |
| parent | 6f84e809d9a373961d34f5b408bf44702b8c978c (diff) | |
Merge branch '2021-11-12-assorted-updates'
- A number of pxe related cleanups and related re-organization.
- A few related pxe/sysboot/extlinux improvements
- Remove some dead code.
- Update Azure to use a newer Windows build environment
- Add a .get_maintainer.conf file
- A few minor TI SoC platform updates
Diffstat (limited to 'include/vsprintf.h')
| -rw-r--r-- | include/vsprintf.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/include/vsprintf.h b/include/vsprintf.h index 83d187e53d4..b4746301462 100644 --- a/include/vsprintf.h +++ b/include/vsprintf.h @@ -172,7 +172,30 @@ int sprintf(char *buf, const char *fmt, ...) * See the vsprintf() documentation for format string extensions over C99. */ int vsprintf(char *buf, const char *fmt, va_list args); -char *simple_itoa(ulong i); + +/** + * simple_itoa() - convert an unsigned integer to a string + * + * This returns a static string containing the decimal representation of the + * given value. The returned value may be overwritten by other calls to other + * simple_... functions, so should be used immediately + * + * @val: Value to convert + * @return string containing the decimal representation of @val + */ +char *simple_itoa(ulong val); + +/** + * simple_xtoa() - convert an unsigned integer to a hex string + * + * This returns a static string containing the hexadecimal representation of the + * given value. The returned value may be overwritten by other calls to other + * simple_... functions, so should be used immediately + * + * @val: Value to convert + * @return string containing the hexecimal representation of @val + */ +char *simple_xtoa(ulong num); /** * Format a string and place it in a buffer |
