summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-05-26 10:59:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-05-26 11:00:53 +0200
commitcbe45748b2414c85548add4aa36d6b2e160ba2d3 (patch)
tree21b48e904545a51f48963e3843a8b575f5f76cdc
parent46e72ec53370a127b4dfeff29e18631a6ded0020 (diff)
downloadbarebox-cbe45748b2414c85548add4aa36d6b2e160ba2d3.tar.gz
barebox-cbe45748b2414c85548add4aa36d6b2e160ba2d3.tar.xz
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 <jacmet@sunsite.dk> This reverts commit 6b082cfe9f9b5b2bea294918ad916c739490cea7.
-rw-r--r--include/stdio.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 9b1f1613..c8247646 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 */