From 1c1cd642bedc8d27b1a6d1cfed7b972c9f0d90a5 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 21 Oct 2011 18:51:33 +0000 Subject: UPSTREAM: Move simple_itoa to vsprintf This function is generally useful and shouldn't hide away in hush. It has been moved as is. Signed-off-by: Simon Glass (cherry picked from commit 3cce8a5496452285e1828984ad3945417205cfc3) Change-Id: I014f58e901e6b035b5eeb694c62e6e881a7b75c2 Reviewed-on: https://gerrit.chromium.org/gerrit/11791 Reviewed-by: Doug Anderson Commit-Ready: Simon Glass Tested-by: Simon Glass --- include/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index 301194148b..771bb1930a 100644 --- a/include/common.h +++ b/include/common.h @@ -707,6 +707,7 @@ void panic(const char *fmt, ...) int sprintf(char * buf, const char *fmt, ...) __attribute__ ((format (__printf__, 2, 3))); int vsprintf(char *buf, const char *fmt, va_list args); +char *simple_itoa(ulong i); /* lib/strmhz.c */ char * strmhz(char *buf, unsigned long hz); -- cgit v1.2.3