summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskconfig/diskconfig.c')
-rw-r--r--libdiskconfig/diskconfig.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdiskconfig/diskconfig.c b/libdiskconfig/diskconfig.c
index d5425de03..6fd81b714 100644
--- a/libdiskconfig/diskconfig.c
+++ b/libdiskconfig/diskconfig.c
@@ -19,6 +19,7 @@
19 19
20#include <errno.h> 20#include <errno.h>
21#include <fcntl.h> 21#include <fcntl.h>
22#include <inttypes.h>
22#include <stdio.h> 23#include <stdio.h>
23#include <stdlib.h> 24#include <stdlib.h>
24#include <string.h> 25#include <string.h>
@@ -80,7 +81,7 @@ parse_len(const char *str, uint64_t *plen)
80 *plen *= multiple; 81 *plen *= multiple;
81 82
82 if (*plen > 0xffffffffULL) { 83 if (*plen > 0xffffffffULL) {
83 ALOGE("Length specified is too large!: %llu KB", *plen); 84 ALOGE("Length specified is too large!: %"PRIu64" KB", *plen);
84 return 1; 85 return 1;
85 } 86 }
86 } 87 }
@@ -371,8 +372,8 @@ validate(struct disk_info *dinfo)
371 372
372 /* only matters for disks, not files */ 373 /* only matters for disks, not files */
373 if (S_ISBLK(stat.st_mode) && total_size > disk_size) { 374 if (S_ISBLK(stat.st_mode) && total_size > disk_size) {
374 ALOGE("Total requested size of partitions (%llu) is greater than disk " 375 ALOGE("Total requested size of partitions (%"PRIu64") is greater than disk "
375 "size (%llu).", total_size, disk_size); 376 "size (%"PRIu64").", total_size, disk_size);
376 goto fail; 377 goto fail;
377 } 378 }
378 379