summaryrefslogtreecommitdiffstats
path: root/lib/vsprintf.c
Commit message (Collapse)AuthorAgeFilesLines
* vsprintf: Add support for printing ipv4 addresses with %pI4Sascha Hauer2016-09-221-0/+29
| | | | | | Can be used conveniently in places that currently use ip_to_string(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: fix handling of strp arg in asprintfEnrico Jorns2016-07-071-2/+1
| | | | | | | | strp argument was ignored but should be forwarded to vasprintf() call in order to make this funktion work as expected. Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* string: Fix (v)asprintf prototypesSascha Hauer2016-04-151-8/+40
| | | | | | | | | | Our asprintf and vasprintf have different prototypes than the glibc functions. This causes trouble when we want to share barebox code with userspace code. Change the prototypes for (v)asprintf to match the glibc prototypes. Since the current (v)asprintf are convenient to use change the existing functions to b(v)asprintf. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: Add support for %paSascha Hauer2016-01-151-0/+27
| | | | | | | Add support for the %pa format specifier to print phys_addr_t, dma_addr_t and resource_size_t. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: Add scnprintf from kernelMarkus Pargmann2015-12-101-0/+24
| | | | | Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add PBL console supportSascha Hauer2015-01-051-0/+12
| | | | | | | | | | | 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>
* printf: use local isdigit/isalnum implementationSascha Hauer2015-01-051-3/+5
| | | | | | | To be independent of the _ctype array. This makes it possible to add printf support to the PBL without adding _ctype aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* printf: move simple_strto*() functions to separate fileSascha Hauer2015-01-051-66/+0
| | | | | | These are not needed in the PBL, so move them to a separate file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* printf: move panic() to common/misc.cSascha Hauer2015-01-051-21/+0
| | | | | | | | panic() is not really a printf like function, so move it to common/misc.c. This is done because we want to have printf support in the PBL, but PBL has it's own panic() implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: Support pU for printing UUIDsSascha Hauer2014-07-111-0/+62
| | | | | | | | With EFI 16byte UUIDs/GUIDs are common. Add support for printing them. This needs to be selected via Kconfig since most architectures have no use for this functionality. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: fix formattingAntony Pavlov2014-05-221-5/+6
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* CONFIG_PANIC_HANG: replace #ifdef with IS_ENABLED()Antony Pavlov2013-08-051-6/+6
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: fix EXPORT_SYMBOL typo on simple_strtoullJean-Christophe PLAGNIOL-VILLARD2012-07-251-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce strtoull_suffix functionSascha Hauer2012-06-301-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add dump_stack functionSascha Hauer2012-01-261-0/+2
| | | | | | | | | | At least ARM allows us to dump the stack, but we currently have no prototype for this. Add a dump_stack prototype and provide a static inline function for architectures without stack dump support. Also, call dump_stack() in panic() to provide more information in the case of a panic. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* compile in simple_strtoullSascha Hauer2011-11-291-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove EARLY_INIT and EARLY_CONSOLE supportSascha Hauer2011-09-271-1/+0
| | | | | | Bitrotted over time and nearly unused, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kallsyms/printk: enable symbol printing support (%pS)Sascha Hauer2011-03-101-0/+1
| | | | | | | | | With this kallsyms finally start working at least on ARM. This enables us resolving addresses into symbols which is particularly useful in combination with stack unwinding support. As kallsyms now compile and work we can remove the depends on BROKEN. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* LED: Add LED trigger supportSascha Hauer2010-12-201-0/+4
| | | | | | | This patch allows to associate LEDs with certain triggers, such as heartbeat or network activity. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: fix wrong EXPORT_SYMBOLSascha Hauer2010-09-161-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: add common clkdevJean-Christophe PLAGNIOL-VILLARD2010-08-061-0/+25
| | | | | | | 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>
* make panic and hang __noreturn functionsSascha Hauer2010-03-301-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add snprintf functionSascha Hauer2010-03-301-0/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: Only define PAGE_SIZE if not already definedSascha Hauer2009-12-181-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* vsprintf: Update to latest kernel versionSascha Hauer2009-06-101-156/+366
| | | | | | This adds a function to print into a malloced string Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* export symbolsSascha Hauer2007-10-071-0/+5
|
* - putc is now putchar for better standard conformitySascha Hauer2007-09-211-1/+1
| | | | - make printf return int
* make printf position independentSascha Hauer2007-07-121-3/+4
|
* svn_rev_693Sascha Hauer2007-07-051-1/+1
| | | | remove do_reset
* svn_rev_639Sascha Hauer2007-07-051-0/+380