9
0
Fork 0
Commit Graph

13 Commits

Author SHA1 Message Date
Sascha Hauer cbe45748b2 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.
2011-05-26 11:00:53 +02:00
Marc Kleine-Budde 6b082cfe9f fix printf warnings
With sandbox printf is redefined as barebox_printf so that it does
not collide with the glibc printf. This leads to tons of

include/stdio.h:12:1: warning: ‘barebox_printf’ is an unrecognized format function type

warnings. This patch fixes this.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-25 11:15:52 +02:00
Krzysztof Halasa d66ae58cd8 Cosmetic fixes, including format attributes for printf() and friends.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-21 09:02:40 +01:00
Jean-Christophe PLAGNIOL-VILLARD e0953c5db2 string: add strlcpy support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Andrea GALLO <andrea.gallo@stericsson.com>
Cc: Gael SALLES <gael.salles@stericsson.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-06 19:09:38 +02:00
Sascha Hauer 3246e13271 Increase MAX_FILES to 128
I already hit the limit while doing DFU on a custom board. Increase the
value to a safe limit.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Sascha Hauer 362d6375aa add snprintf function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer d1a54ab5c4 vsprintf: Update to latest kernel version
This adds a function to print into a malloced string

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-06-10 13:55:07 +02:00
Sascha Hauer 8a2e721fc5 Flush consoles before exiting
We use FIFOs on some devices, so flush them before exiting so
we do not get funny characters in the output.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-19 12:21:24 +01:00
Marc Kleine-Budde 17e0a74ed3 [sparse] don't return sth in a void function
fixed
include/stdio.h:23:2: warning: returning void-valued expression

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Sascha Hauer 0dd68e795e - putc is now putchar for better standard conformity
- make printf return int
2007-09-21 09:09:06 +02:00
Sascha Hauer a78b0a4321 svn_rev_390
add file functions
2007-07-05 18:01:49 +02:00
Sascha Hauer 478026955f svn_rev_321
move some functions away from common.h
2007-07-05 18:01:43 +02:00
Sascha Hauer 0f184e3a55 svn_rev_273
split up header files, make src pointer in write functions const
2007-07-05 18:01:39 +02:00