diff options
author | Angel Pons <th3fanbus@gmail.com> | 2022-03-09 10:51:44 +0100 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2022-03-20 22:53:04 +0000 |
commit | dfa7451bf1d88f671edabca49be9a7d45fd05f93 (patch) | |
tree | da8514ff1f6dcdfb954bae7c702418727dd34a4a | |
parent | 78221212fa06faf82dd799c027e3a9f198354835 (diff) | |
download | flashrom-dfa7451bf1d88f671edabca49be9a7d45fd05f93.tar.gz flashrom-dfa7451bf1d88f671edabca49be9a7d45fd05f93.tar.bz2 flashrom-dfa7451bf1d88f671edabca49be9a7d45fd05f93.zip |
cli_classic.c: Use correct format specifier for `size_t`
The return value of `flashrom_flash_getsize()` is of `size_t` type.
Fixes: commit 83c5c50f91806df599fa9eebb654832879381772
Change-Id: I8025c0e046cb61e0e115d3786e6e4184190347f1
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62707
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
-rw-r--r-- | cli_classic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_classic.c b/cli_classic.c index dc3a651a..b3930d21 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -715,7 +715,7 @@ int main(int argc, char *argv[]) } if (flash_size) { - printf("%ld\n", flashrom_flash_getsize(fill_flash)); + printf("%zu\n", flashrom_flash_getsize(fill_flash)); goto out_shutdown; } |