summaryrefslogtreecommitdiffstats
path: root/include/stdio.h
Commit message (Collapse)AuthorAgeFilesLines
* Add PBL console supportSascha Hauer2015-01-051-9/+11
| | | | | | | | | | | This adds simple console support to the PBL which makes it possible to print more complex messages in the PBL than just strings or hex numbers. For now puts_ll is used to print the messages, so it depends on CONFIG_DEBUG_LL which makes it more a debugging option. However, this could be extended later to get regular output from the PBL if desired. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix typo.Masaki Muranaka2013-06-031-1/+1
| | | | | | | This fix is harmless and obvious. Signed-off-by: Masaki Muranaka <monaka@monami-ya.jp> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove ftstc(). It is declared but not implemented.Masaki Muranaka2013-06-031-1/+0
| | | | | Signed-off-by: Masaki Muranaka <monaka@monami-ya.jp> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce console none supportJean-Christophe PLAGNIOL-VILLARD2013-01-231-10/+54
| | | | | | | | | | | | this will allow to have no console support Use full for bootstrap as we can save 6.5 KiB (barebox.bin) and 3.8 KiB (zbarebox.bin lzo) on at91sam9263 as example vs console simple As on bootstrap we have often very limited size. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix fprintf prototype and return valueSascha Hauer2011-11-111-1/+1
| | | | | | | | The puts functions now properly return the number of characters written. With this we can also fix fprintf. Also, remove never reached return in fputs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: fix return values of puts functionsSascha Hauer2011-11-111-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Avoid warnings by using format(__printf__)Loïc Minier2011-10-181-6/+6
| | | | | | | | | | | | | | | | When building sandbox, barebox is built with -Dprintf=barebox_printf as to not collide with the printf provided by libc. This would also match the format(printf) function __attribute__. Since gcc documents that __printf__ can be used instead of printf as a format attribute, use this instead and avoid a lot of noisy warnings. NB: this relates to 6b082cfe9f9b5b2bea294918ad916c739490cea7 which was an earlier attempt at solving this, which got reverted due to other regressions. Signed-off-by: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "fix printf warnings"Sascha Hauer2011-05-261-5/+0
| | | | | | | | | | | | | | | | | | 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.
* fix printf warningsMarc Kleine-Budde2011-04-251-0/+5
| | | | | | | | | | | | 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>
* Cosmetic fixes, including format attributes for printf() and friends.Krzysztof Halasa2010-12-211-8/+10
| | | | | Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* string: add strlcpy supportJean-Christophe PLAGNIOL-VILLARD2010-08-061-0/+1
| | | | | | | 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>
* Increase MAX_FILES to 128Sascha Hauer2010-05-031-1/+1
| | | | | | | 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>
* add snprintf functionSascha Hauer2010-03-301-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: Update to latest kernel versionSascha Hauer2009-06-101-0/+3
| | | | | | This adds a function to print into a malloced string Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Flush consoles before exitingSascha Hauer2009-03-191-0/+1
| | | | | | | 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>
* [sparse] don't return sth in a void functionMarc Kleine-Budde2007-11-291-1/+1
| | | | | | | fixed include/stdio.h:23:2: warning: returning void-valued expression Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* - putc is now putchar for better standard conformitySascha Hauer2007-09-211-3/+3
| | | | - make printf return int
* svn_rev_390Sascha Hauer2007-07-051-8/+18
| | | | add file functions
* svn_rev_321Sascha Hauer2007-07-051-0/+2
| | | | move some functions away from common.h
* svn_rev_273Sascha Hauer2007-07-051-0/+43
split up header files, make src pointer in write functions const