aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuka Perkov <lists@lukaperkov.net>2011-09-05 23:40:13 +0200
committerWolfgang Denk <wd@denx.de>2011-10-22 00:16:29 +0200
commit8603b69b8b04e3e34f8744b396c62833b78fd7c1 (patch)
tree8c3b5426dd69522e5109a904c5f4ae06267ec18c /tools
parenta2da616311151ecfab8b8fcc510686fc3c0c9a21 (diff)
downloadu-boot-linaro-stable-8603b69b8b04e3e34f8744b396c62833b78fd7c1.tar.gz
fix compile warning for env tools
Patch fixes this issue: fw_env.c: In function ‘fw_setenv’: fw_env.c:492:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat] fw_env.c: In function ‘flash_write_buf’: fw_env.c:806:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat] Signed-off-by: Luka Perkov <lists@lukaperkov.net> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/env/fw_env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index ed6b53f48..cd0cc31ad 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -488,7 +488,7 @@ int fw_setenv(int argc, char *argv[])
value = (char *)malloc(len - strlen(name));
if (!value) {
fprintf(stderr,
- "Cannot malloc %u bytes: %s\n",
+ "Cannot malloc %zu bytes: %s\n",
len - strlen(name), strerror(errno));
return -1;
}
@@ -802,7 +802,7 @@ static int flash_write_buf (int dev, int fd, void *buf, size_t count,
data = malloc (erase_len);
if (!data) {
fprintf (stderr,
- "Cannot malloc %u bytes: %s\n",
+ "Cannot malloc %zu bytes: %s\n",
erase_len, strerror (errno));
return -1;
}