mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![]() The malloc() calls are unnecessary, just allocate the stuff on stack. While at it, reorder the code a little, so that only one variable is used for the text, use snprintf() instead of sprintf() and use %01d as a formatting string to avoid any possible overflows. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Nikita Kiryanov <nikita@compulab.co.il> Cc: Sean Cross <xobs@kosagi.com> Cc: Simon Glass <sjg@chromium.org> Cc: Stefano Babic <sbabic@denx.de> Cc: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> |
||
---|---|---|
.. | ||
cmd_bmode.c | ||
cmd_hdmidet.c | ||
cpu.c | ||
i2c-mxv7.c | ||
iomux-v3.c | ||
Makefile | ||
misc.c | ||
sata.c | ||
speed.c | ||
spl_sd.cfg | ||
spl.c | ||
timer.c | ||
video.c |