summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-11-02 09:52:07 +0000
committerWolfgang Denk <wd@denx.de>2011-12-17 23:30:35 +0100
commit9785c905cff109e48415904e518ca559918e7fd0 (patch)
tree428a7eb6f44bbab258f39e65c368d963026867be /include/common.h
parenta7b39185338c333a052728a7952b5f1cba4fc22a (diff)
downloadu-boot-imx-9785c905cff109e48415904e518ca559918e7fd0.zip
u-boot-imx-9785c905cff109e48415904e518ca559918e7fd0.tar.gz
u-boot-imx-9785c905cff109e48415904e518ca559918e7fd0.tar.bz2
Move vsprintf functions into their own header
common.h is very large, so before changing the vsprintf functions, move the prototypes into their own header file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/common.h b/include/common.h
index 5cfdd76..3df1def 100644
--- a/include/common.h
+++ b/include/common.h
@@ -733,16 +733,7 @@ void uuid_str_to_bin(const char *uuid, unsigned char *out);
int uuid_str_valid(const char *uuid);
/* lib/vsprintf.c */
-ulong simple_strtoul(const char *cp,char **endp,unsigned int base);
-int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
-unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base);
-long simple_strtol(const char *cp,char **endp,unsigned int base);
-void panic(const char *fmt, ...)
- __attribute__ ((format (__printf__, 1, 2), noreturn));
-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);
+#include <vsprintf.h>
/* lib/strmhz.c */
char * strmhz(char *buf, unsigned long hz);