From cbe45748b2414c85548add4aa36d6b2e160ba2d3 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 26 May 2011 10:59:43 +0200 Subject: [PATCH] Revert "fix printf warnings" While getting rid of all the format(barebox_printf) warnings was nice, it caused the printf calls in arch/sandbox/os/common.c to get directed to the barebox versions rather than the libc ones causing a crash: E.G. before this revert: nm -a barebox|grep -w printf 0000000000404fa3 T print And after: nm -a barebox|grep -w printf U printf@@GLIBC_2.2.5 Signed-off-by: Peter Korsgaard This reverts commit 6b082cfe9f9b5b2bea294918ad916c739490cea7. --- include/stdio.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/stdio.h b/include/stdio.h index 9b1f16135..c82476468 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -8,9 +8,6 @@ * 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))); @@ -63,6 +60,4 @@ int fputc(int file, const char c); int ftstc(int file); int fgetc(int file); -#define printf ORIG_printf - #endif /* __STDIO_H */