mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 01:19:49 +00:00
tools: env: Fix printf() warning in fw_env
The printf() string produces a warning about %d not matching size_t. Fix it and put the format string on one line to avoid a checkpatch warning. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7f772fbcc0
commit
d9cd4d2a8d
1 changed files with 2 additions and 2 deletions
4
tools/env/fw_env.c
vendored
4
tools/env/fw_env.c
vendored
|
@ -952,8 +952,8 @@ static int flash_read_buf(int dev, int fd, void *buf, size_t count,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (rc != readlen) {
|
if (rc != readlen) {
|
||||||
fprintf(stderr, "Read error on %s: "
|
fprintf(stderr,
|
||||||
"Attempted to read %d bytes but got %d\n",
|
"Read error on %s: Attempted to read %zd bytes but got %d\n",
|
||||||
DEVNAME(dev), readlen, rc);
|
DEVNAME(dev), readlen, rc);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue