diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-12-03 11:42:57 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-12-07 08:21:30 +0100 |
commit | 10e0637d0387051e7524c9a8b964939c459938c9 (patch) | |
tree | 74a982a4da5e96b38404a69e6142f66ee1729d97 /commands/memtester | |
parent | 8b65d4b7c5ef484343d3e955ab01b178af80502c (diff) | |
download | barebox-10e0637d0387051e7524c9a8b964939c459938c9.tar.gz |
commands: memtester: fix mismatched format string
expression is of type size_t. Use the appropriate format string specifier
for printing it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/memtester')
-rw-r--r-- | commands/memtester/memtester.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/memtester/memtester.c b/commands/memtester/memtester.c index 8b64d32329..130dc97c83 100644 --- a/commands/memtester/memtester.c +++ b/commands/memtester/memtester.c @@ -139,7 +139,7 @@ static int do_memtester(int argc, char **argv) { wantbytes = (size_t) strtoull_suffix(argv[optind], 0, 0); if (wantbytes < 2 * sizeof(ul)) { - printf("need at least %ldB of memory to test\n", 2 * sizeof(ul)); + printf("need at least %zuB of memory to test\n", 2 * sizeof(ul)); return COMMAND_ERROR_USAGE; } wantmb = (wantbytes >> 20); |