aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinguang Dong <dongjinguang@huawei.com>2017-04-12 19:21:45 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-12 19:21:45 +0000
commit264300617129b10352635647ead17214bdc50532 (patch)
tree587c64ca38edeb098cf72048b77b843252e4f0c7
parent24ce8504591bbf8cf44dfc1e132ed706daa09536 (diff)
parent9871e7b56b648a8a72b48d9f1cdf9e516e619f3a (diff)
downloadvboot_reference-264300617129b10352635647ead17214bdc50532.tar.gz
Fix debug info data type mismatch error am: 945ebe97e8 am: 61f821371a am: a505d45948
am: 9871e7b56b Change-Id: I68bc81ac6eef1e4f8a46314c539a238e78274679
-rw-r--r--cgpt/cgpt_common.c2
-rw-r--r--cgpt/cgpt_create.c2
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();
}
}