[PATCH] Fix sandbox ./barebox --help by reverting 6b082cfe (fix printf warnings)
Peter Korsgaard
jacmet at sunsite.dk
Thu May 26 04:02:57 EDT 2011
>>>>> "Peter" == Peter Korsgaard <jacmet at sunsite.dk> writes:
Peter> While getting rid of all the format(barebox_printf) warnings was nice,
Peter> it caused the printf calls in arch/sandbox/os/common.c to get directed
Peter> to the barebox versions rather than the libc ones causing a crash:
Peter> E.G. before this revert:
Peter> nm -a barebox|grep -w printf
Peter> 0000000000404fa3 T print
Peter> And after:
Peter> nm -a barebox|grep -w printf
Peter> U printf@@GLIBC_2.2.5
Peter> Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
Ping?
Peter> ---
Peter> include/stdio.h | 5 -----
Peter> 1 files changed, 0 insertions(+), 5 deletions(-)
Peter> diff --git a/include/stdio.h b/include/stdio.h
Peter> index 9b1f161..c824764 100644
Peter> --- a/include/stdio.h
Peter> +++ b/include/stdio.h
Peter> @@ -8,9 +8,6 @@
Peter> * STDIO based functions (can always be used)
Peter> */
Peter> -#define ORIG_printf printf
Peter> -#undef printf
Peter> -
Peter> /* serial stuff */
Peter> void serial_printf(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
Peter> @@ -63,6 +60,4 @@ int fputc(int file, const char c);
Peter> int ftstc(int file);
Peter> int fgetc(int file);
Peter> -#define printf ORIG_printf
Peter> -
Peter> #endif /* __STDIO_H */
Peter> --
Peter> 1.7.4.4
--
Bye, Peter Korsgaard
More information about the barebox
mailing list