summaryrefslogtreecommitdiff
path: root/cgpt
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-08-05 16:34:19 -0600
committerCommit Bot <commit-bot@chromium.org>2019-08-06 22:04:50 +0000
commit2fb60500149a2757952332a8b0793099f9c6d077 (patch)
treefc23bee24f9f592a091117fb1389ff86eb37ac42 /cgpt
parent90671fa6d2d3d48fab6408c7493be61bcee5868e (diff)
downloadvboot-2fb60500149a2757952332a8b0793099f9c6d077.tar.gz
cgpt: Fix format specifier for size_t
Use %zu, which is the format specifier for size_t. BUG=none TEST=make clean && make runtests BRANCH=none Change-Id: I3317c2f6a7b9d95c22a43ae3d786c7d7380342ad Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Found-by: Coverity CID 199882 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1737706 Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'cgpt')
-rw-r--r--cgpt/cgpt_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgpt/cgpt_create.c b/cgpt/cgpt_create.c
index 4e3bb77d..e2b4b80b 100644
--- a/cgpt/cgpt_create.c
+++ b/cgpt/cgpt_create.c
@@ -79,7 +79,7 @@ static int GptCreate(struct drive *drive, CgptCreateParams *params) {
size_t half_size =
(drive->gpt.gpt_drive_sectors / 2) * drive->gpt.sector_bytes;
if (half_size < required_min_size) {
- Error("Not enough space to store GPT structures. Required %d bytes.\n",
+ Error("Not enough space to store GPT structures. Required %zu bytes.\n",
required_min_size * 2);
return -1;
}