summaryrefslogtreecommitdiff
path: root/common/spl/spl.c
diff options
context:
space:
mode:
authorVasili Galka <vvv444@gmail.com>2014-08-26 13:45:48 +0300
committerTom Rini <trini@ti.com>2014-09-15 13:32:55 -0400
commit5d69a5d178a1fc3874b8d18e5be3e520f6acaca5 (patch)
tree132b0f4153d5a668f5cac8c44192ea41b57ee57b /common/spl/spl.c
parent2dd2cde11c80f7f9dd749e0227825533f6ae58a3 (diff)
Fix a few printf argument verification warnings
The parameters of size_t type shall be formatted using "%zu" and not using "%d". Precision argument for the "%.*s" parameters shall be of int type. Signed-off-by: Vasili Galka <vvv444@gmail.com>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r--common/spl/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 774fdad252..b16664f845 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -86,7 +86,7 @@ void spl_parse_image_header(const struct image_header *header)
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",
- sizeof(spl_image.name), spl_image.name,
+ (int)sizeof(spl_image.name), spl_image.name,
spl_image.load_addr, spl_image.size);
} else {
/* Signature not found - assume u-boot.bin */