dm: Add a panic_str() function to reduce code size
authorSimon Glass <sjg@chromium.org>
Sat, 28 Feb 2015 05:06:32 +0000 (22:06 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 23 Apr 2015 15:05:52 +0000 (09:05 -0600)
commit66312374dca86e77fc9b08f774546e62b6cd1aa7
tree2a26f0695511a13329ca8469fcadfcf417003f79
parent7f9875e733b79556ade508b88f88ac1f8a2c7e3c
dm: Add a panic_str() function to reduce code size

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 <sjg@chromium.org>
drivers/serial/serial-uclass.c
include/vsprintf.h
lib/fdtdec.c
lib/vsprintf.c