diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2011-02-13 10:40:28 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-25 11:15:52 +0200 |
commit | 6b082cfe9f9b5b2bea294918ad916c739490cea7 (patch) | |
tree | 2b028a34ff528cbcf8d03b51e33ffa194dbc4783 /include/stdio.h | |
parent | ca43e15a5730370dc57e010cb7ed312cd73cfa0a (diff) | |
download | barebox-6b082cfe9f9b5b2bea294918ad916c739490cea7.tar.gz barebox-6b082cfe9f9b5b2bea294918ad916c739490cea7.tar.xz |
fix printf warnings
With sandbox printf is redefined as barebox_printf so that it does
not collide with the glibc printf. This leads to tons of
include/stdio.h:12:1: warning: ‘barebox_printf’ is an unrecognized format function type
warnings. This patch fixes this.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index c824764689..9b1f161350 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -8,6 +8,9 @@ * STDIO based functions (can always be used) */ +#define ORIG_printf printf +#undef printf + /* serial stuff */ void serial_printf(const char *fmt, ...) __attribute__ ((format(printf, 1, 2))); @@ -60,4 +63,6 @@ int fputc(int file, const char c); int ftstc(int file); int fgetc(int file); +#define printf ORIG_printf + #endif /* __STDIO_H */ |