summaryrefslogtreecommitdiff
path: root/include/vsprintf.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-11-12 10:14:24 -0500
committerTom Rini <[email protected]>2021-11-12 10:14:24 -0500
commit515bf78ff975d474f895bf86b4e16eade51c8dbd (patch)
tree49114762efa8154f2a2f75d8718cf650e7f0fc09 /include/vsprintf.h
parent1e72ad6b387c599f477f83cda67ab525c089a9b0 (diff)
parent6f84e809d9a373961d34f5b408bf44702b8c978c (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.h25
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