diff options
author | Vasili Galka <vvv444@gmail.com> | 2014-08-26 14:45:48 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-09-15 21:32:55 +0400 |
commit | 5d69a5d178a1fc3874b8d18e5be3e520f6acaca5 (patch) | |
tree | 132b0f4153d5a668f5cac8c44192ea41b57ee57b /common/spl | |
parent | 2dd2cde11c80f7f9dd749e0227825533f6ae58a3 (diff) | |
download | u-boot-5d69a5d178a1fc3874b8d18e5be3e520f6acaca5.tar.xz |
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')
-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 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 */ |