summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAndreas Bießmann <biessmann@corscience.de>2011-02-09 15:10:29 +0100
committerWolfgang Denk <wd@denx.de>2011-04-12 22:58:32 +0200
commit8c3aff525c710a8a53c96e0bb98c988483429418 (patch)
tree7816ce76a42f5c0d381574fef3c50ae9558e4577 /common
parent8ae86b76c648d8bef97241c78e2fddb1c4f164d3 (diff)
downloadblackbird-obmc-uboot-8c3aff525c710a8a53c96e0bb98c988483429418.tar.gz
blackbird-obmc-uboot-8c3aff525c710a8a53c96e0bb98c988483429418.zip
cmd_nvedit: use explicit typecast for printf
This patch fixes warnings in MAKEALL for avr32: ---8<--- cmd_nvedit.c: In function 'do_env_export': cmd_nvedit.c:663: warning: format '%zX' expects type 'size_t', but argument 3 has type 'ssize_t' --->8--- Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nvedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index fb69c242f1..6d8512aecb 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -659,7 +659,7 @@ static int do_env_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv
errno);
return 1;
}
- sprintf(buf, "%zX", len);
+ sprintf(buf, "%zX", (size_t)len);
setenv("filesize", buf);
return 0;
@@ -685,7 +685,7 @@ static int do_env_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv
envp->flags = ACTIVE_FLAG;
#endif
}
- sprintf(buf, "%zX", len + offsetof(env_t,data));
+ sprintf(buf, "%zX", (size_t)(len + offsetof(env_t,data)));
setenv("filesize", buf);
return 0;
OpenPOWER on IntegriCloud