05 Oct, 2017
1 commit
-
This header uses ulong, size_t, loff_t.
Include to make this header self-contained.Signed-off-by: Masahiro Yamada
07 Sep, 2017
1 commit
-
The inline documentation of vsprintf mentions a parameter size
which does not exist in the function declaration.int vsprintf(char *buf, const char *fmt, va_list args);
Signed-off-by: Heinrich Schuchardt
31 Oct, 2016
1 commit
-
Cover-Letter: Fixes several spelling errors for the words "resetting",
"extended", "occur", and "multiple".Signed-off-by: Vagrant Cascadian
Reviewed-by: Simon Glass
20 Aug, 2016
1 commit
-
vsprintf.h doesn't include the stdarg.h file, which means that it relies on
the files that include vsprintf.h to include stdarg.h as well.Add an explicit include to avoid build errors when simply including that
file.Acked-by: Simon Glass
Acked-by: Pantelis Antoniou
Signed-off-by: Maxime Ripard
19 Jan, 2016
1 commit
-
Enabling this function always removes some class of string saftey issues.
The size change here in general is about 400 bytes and this seems a reasonable
trade-off.Cc: Peng Fan
Cc: Peter Robinson
Cc: Fabio Estevam
Cc: Adrian Alonso
Cc: Stefano Babic
Cc: Hans de Goede
Signed-off-by: Tom Rini
22 Jul, 2015
1 commit
-
Split out the code in fdtdec which finds a number at the end of a string. It
can be useful in other situations.Signed-off-by: Simon Glass
30 Jun, 2015
1 commit
-
Move common functions from cmd_nand.c (for calculating offset
and size from cmdline paramter) to common place, so they could
used from other commands which use mtd partitions.For onenand the arg_off_size() is left in common/cmd_onenand.c.
It should use now the common arg_off() function, but as I could
not test onenand I let it there ...Signed-off-by: Heiko Schocher
Acked-by: Scott Wood
Reviewed-by: Jagannadh Teki
23 Apr, 2015
1 commit
-
The printf() in panic() adds about 1.5KB of code size to SPL when compiled
with Thumb-2. Provide a smaller version that does not support printf()-style
arguments and use it in two commonly compiled places.Signed-off-by: Simon Glass
15 Oct, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
26 Jun, 2013
1 commit
-
Move bootstage's numbering printing code into a generic place so that it can
be used by tracing also.Signed-off-by: Simon Glass
18 Dec, 2011
3 commits
-
Now that this is not in common.h, perhaps it is acceptable to move this
documentation into the header file.Signed-off-by: Simon Glass
-
From: Sonny Rao
These functions are useful in U-Boot because they allow a graceful failure
rather than an unpredictable stack overflow when printf() buffers are
exceeded.Mostly copied from the Linux kernel. I copied vscnprintf and
scnprintf so we can change printf and vprintf to use the safe
implementation but still return the correct values.(Simon Glass modified this commit a little)
Signed-off-by: Sonny Rao
-
common.h is very large, so before changing the vsprintf functions, move the
prototypes into their own header file.Signed-off-by: Simon Glass