mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
SPL: fix printing of image name
The maximum length of the name of the image is
obviously not sizeof(), which is just the
length of a pointer, but IH_NMLEN.
fixes: 62cf11c092
("SPL: Limit image name print length")
Signed-off-by: André Draszik <adraszik@tycoint.com>
Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
35172cfee8
commit
3fe3839acc
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
|
|||
spl_image->os = image_get_os(header);
|
||||
spl_image->name = image_get_name(header);
|
||||
debug("spl: payload image: %.*s load addr: 0x%lx size: %d\n",
|
||||
(int)sizeof(spl_image->name), spl_image->name,
|
||||
IH_NMLEN, spl_image->name,
|
||||
spl_image->load_addr, spl_image->size);
|
||||
#else
|
||||
/* LEGACY image not supported */
|
||||
|
|
Loading…
Add table
Reference in a new issue