diff options
-rw-r--r-- | cgpt/cgpt_common.c | 4 | ||||
-rw-r--r-- | cgpt/cgpt_create.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cgpt/cgpt_common.c b/cgpt/cgpt_common.c index 90fe45a2..db180bef 100644 --- a/cgpt/cgpt_common.c +++ b/cgpt/cgpt_common.c @@ -85,13 +85,13 @@ int Load(struct drive *drive, uint8_t **buf, require(buf); if (!sector_count || !sector_bytes) { - Error("%s() failed at line %d: sector_count=%d, sector_bytes=%d\n", + Error("%s() failed at line %d: sector_count=%" PRIu64 ", sector_bytes=%" PRIu64 "\n", __FUNCTION__, __LINE__, sector_count, sector_bytes); return CGPT_FAILED; } /* Make sure that sector_bytes * sector_count doesn't roll over. */ if (sector_bytes > (UINT64_MAX / sector_count)) { - Error("%s() failed at line %d: sector_count=%d, sector_bytes=%d\n", + Error("%s() failed at line %d: sector_count=%" PRIu64 ", sector_bytes=%" PRIu64 "\n", __FUNCTION__, __LINE__, sector_count, sector_bytes); return CGPT_FAILED; } diff --git a/cgpt/cgpt_create.c b/cgpt/cgpt_create.c index e2b4b80b..77980bfc 100644 --- a/cgpt/cgpt_create.c +++ b/cgpt/cgpt_create.c @@ -15,7 +15,7 @@ static void AllocAndClear(uint8_t **buf, uint64_t size) { } else { *buf = calloc(1, size); if (!*buf) { - Error("Cannot allocate %u bytes.\n", size); + Error("Cannot allocate %" PRIu64 " bytes.\n", size); abort(); } } |