Commit c4f5c41a authored by Matthijs van Duin's avatar Matthijs van Duin Committed by H. Nikolaus Schaller

fix image name field width in spl debug message

parent 4877e8a4
......@@ -116,8 +116,8 @@ 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%x size: %d\n",
(int)sizeof(spl_image->name), spl_image->name,
debug("spl: payload image: %-.*s load addr: 0x%x size: %d\n",
(int)IH_NMLEN, spl_image->name,
spl_image->load_addr, spl_image->size);
} else {
#ifdef CONFIG_SPL_PANIC_ON_RAW_IMAGE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment