Commit 2e8ff877 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Print out the right number in our diagnostics

parent b600f1a1
...@@ -323,7 +323,7 @@ tweak_generic_bytes(struct cli *cli, volatile ssize_t *dest, const char *arg, ...@@ -323,7 +323,7 @@ tweak_generic_bytes(struct cli *cli, volatile ssize_t *dest, const char *arg,
return; return;
} }
if ((uintmax_t)((ssize_t)r) != r) { if ((uintmax_t)((ssize_t)r) != r) {
fmt_bytes(cli, (uintmax_t)max); fmt_bytes(cli, r);
VCLI_Out(cli, " is too large for this architecture.\n"); VCLI_Out(cli, " is too large for this architecture.\n");
VCLI_SetResult(cli, CLIS_PARAM); VCLI_SetResult(cli, CLIS_PARAM);
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment