diff options
author | Simon Glass <sjg@chromium.org> | 2020-08-01 10:30:38 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-05 08:18:34 -0400 |
commit | d9cd4d2a8d429068a6a5061a33459ae3ae113ef8 (patch) | |
tree | 802e775ede399fc5ced31049e6df8c9339ea3b9e /tools | |
parent | 7f772fbcc04b8f70a70b79f869b03c2897ba0651 (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/env/fw_env.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 3ab1ae69c7..ccbeb5552b 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; } |