9
0
Fork 0

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 6b082cfe9f.
This commit is contained in:
Sascha Hauer 2011-05-26 10:59:43 +02:00
parent 46e72ec533
commit cbe45748b2
1 changed files with 0 additions and 5 deletions

View File

@ -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 */