diff options
author | Jinguang Dong <dongjinguang@huawei.com> | 2017-04-10 15:56:30 +0800 |
---|---|---|
committer | Jinguang Dong <dongjinguang@huawei.com> | 2017-04-10 15:56:30 +0800 |
commit | 945ebe97e8a6812c78398723e46dd52639eccaa5 (patch) | |
tree | 587c64ca38edeb098cf72048b77b843252e4f0c7 | |
parent | 62ffad49bd118bf41a97db439ce7ae1ce93f6904 (diff) | |
download | vboot_reference-945ebe97e8a6812c78398723e46dd52639eccaa5.tar.gz |
Fix debug info data type mismatch error
Test: mm -j8
Change-Id: I1c524a4d120a658b7a95c4ca4b47ccf1e89739d3
-rw-r--r-- | cgpt/cgpt_common.c | 2 | ||||
-rw-r--r-- | cgpt/cgpt_create.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cgpt/cgpt_common.c b/cgpt/cgpt_common.c index 5bb44f7a..ea57223b 100644 --- a/cgpt/cgpt_common.c +++ b/cgpt/cgpt_common.c @@ -69,7 +69,7 @@ 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=%ld, sector_bytes=%ld\n", __FUNCTION__, __LINE__, sector_count, sector_bytes); return CGPT_FAILED; } diff --git a/cgpt/cgpt_create.c b/cgpt/cgpt_create.c index c34cfe31..c3369e42 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 %lu bytes.\n", size); abort(); } } |