From: Peter Korsgaard <jacmet@sunsite.dk>
To: barebox@lists.infradead.org, mkl@pengutronix.de
Subject: [PATCH] Fix sandbox ./barebox --help by reverting 6b082cfe (fix printf warnings)
Date: Sat, 14 May 2011 23:29:04 +0200 [thread overview]
Message-ID: <1305408544-29710-1-git-send-email-jacmet@sunsite.dk> (raw)
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>
---
include/stdio.h | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/include/stdio.h b/include/stdio.h
index 9b1f161..c824764 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 */
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2011-05-14 21:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-14 21:29 Peter Korsgaard [this message]
2011-05-26 8:02 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1305408544-29710-1-git-send-email-jacmet@sunsite.dk \
--to=jacmet@sunsite.dk \
--cc=barebox@lists.infradead.org \
--cc=mkl@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox