nvmecontrol: use uintmax_t for a size

Use uintmax_t cast to print the size of the device for the non-humanize
case to avoid issues with 32-bit longs.

Fixes:			9c1bec9c21
Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-10-07 21:41:02 -06:00
parent 39d6144dcd
commit 2da6a6b31d

View File

@ -143,7 +143,7 @@ devlist(const struct cmd *f, int argc, char *argv[])
printf(" %10s (%s)\n", name, buf); printf(" %10s (%s)\n", name, buf);
} else { } else {
printf(" %10s (%luMB)\n", name, size / 1024 / 1024); printf(" %10s (%juMB)\n", name, (uintmax_t)size / 1024 / 1024);
} }
} }