diff options
author | André Draszik <adraszik@tycoint.com> | 2017-10-03 16:55:50 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-11-16 19:10:25 -0700 |
commit | 3fe3839acc4a5d9b1af9b2ab3884b0d3f2e23370 (patch) | |
tree | b8a2bd35165f75fbc61e84233e4383b2401259a5 | |
parent | 35172cfee8b02e5f3b21de35255d9d80afa196a9 (diff) | |
download | u-boot-3fe3839acc4a5d9b1af9b2ab3884b0d3f2e23370.zip u-boot-3fe3839acc4a5d9b1af9b2ab3884b0d3f2e23370.tar.gz u-boot-3fe3839acc4a5d9b1af9b2ab3884b0d3f2e23370.tar.bz2 |
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: 62cf11c0921a90c6bd62344f4bc069668e6c698c
("SPL: Limit image name print length")
Signed-off-by: André Draszik <adraszik@tycoint.com>
Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | common/spl/spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index aaddddd..d232f67 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -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 */ |