aboutsummaryrefslogtreecommitdiff
path: root/tools/env/fw_env.c
diff options
context:
space:
mode:
authorTom Rini2020-08-05 16:05:33 -0400
committerTom Rini2020-08-05 16:05:33 -0400
commit635dfee2cb522f5072530ca63fd4ab02890b90a2 (patch)
tree8abedb1958a51367a9a08922eea3d33cfb6035f4 /tools/env/fw_env.c
parentf1c0b7cd4be2081ae3711cec2c4cc2910a5817e1 (diff)
parent7b27e0fe13d8d44da6cd357a69668a726b852502 (diff)
Merge branch '2020-08-05-misc-fixes'
- A large number of assorted fixes and minor improvements
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r--tools/env/fw_env.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 3ab1ae69c7a..66cb9d2a25e 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -952,8 +952,8 @@ static int flash_read_buf(int dev, int fd, void *buf, size_t count,
return -1;
}
if (rc != readlen) {
- fprintf(stderr, "Read error on %s: "
- "Attempted to read %d bytes but got %d\n",
+ fprintf(stderr,
+ "Read error on %s: Attempted to read %zd bytes but got %d\n",
DEVNAME(dev), readlen, rc);
return -1;
}
@@ -995,7 +995,7 @@ static int flash_write_buf(int dev, int fd, void *buf, size_t count)
of the data */
loff_t blockstart; /* running start of the current block -
MEMGETBADBLOCK needs 64 bits */
- int was_locked; /* flash lock flag */
+ int was_locked = 0; /* flash lock flag */
int rc;
/*