projects
/
profile
/
mobile
/
platform
/
kernel
/
u-boot-tm1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix compile warning for env tools
[profile/mobile/platform/kernel/u-boot-tm1.git]
/
tools
/
env
/
fw_env.c
diff --git
a/tools/env/fw_env.c
b/tools/env/fw_env.c
index
8ff7052
..
3682cda
100644
(file)
--- 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,
value = (char *)malloc(len - strlen(name));
if (!value) {
fprintf(stderr,
- "Cannot malloc %u bytes: %s\n",
+ "Cannot malloc %
z
u bytes: %s\n",
len - strlen(name), strerror(errno));
return -1;
}
len - strlen(name), strerror(errno));
return -1;
}
@@
-806,7
+806,7
@@
static int flash_write_buf (int dev, int fd, void *buf, size_t count,
data = malloc (erase_len);
if (!data) {
fprintf (stderr,
data = malloc (erase_len);
if (!data) {
fprintf (stderr,
- "Cannot malloc %u bytes: %s\n",
+ "Cannot malloc %
z
u bytes: %s\n",
erase_len, strerror (errno));
return -1;
}
erase_len, strerror (errno));
return -1;
}