summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-11-29 22:33:07 +0100
committerTom Cherry <tomcherry@google.com>2018-11-29 22:33:07 +0100
commit45e505a4e9ef1247c5c8acb437b351212cbbd409 (patch)
treef29715849559035647ea5ad6c810c868ab94461e
parentMerge "ImageGenerator: switch to BreakIterator from icu library" (diff)
downloadandroid_bootable_recovery-45e505a4e9ef1247c5c8acb437b351212cbbd409.tar
android_bootable_recovery-45e505a4e9ef1247c5c8acb437b351212cbbd409.tar.gz
android_bootable_recovery-45e505a4e9ef1247c5c8acb437b351212cbbd409.tar.bz2
android_bootable_recovery-45e505a4e9ef1247c5c8acb437b351212cbbd409.tar.lz
android_bootable_recovery-45e505a4e9ef1247c5c8acb437b351212cbbd409.tar.xz
android_bootable_recovery-45e505a4e9ef1247c5c8acb437b351212cbbd409.tar.zst
android_bootable_recovery-45e505a4e9ef1247c5c8acb437b351212cbbd409.zip
-rw-r--r--roots.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index 4fcd6feb9..8772c577a 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -18,6 +18,7 @@
#include <ctype.h>
#include <fcntl.h>
+#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@@ -66,7 +67,7 @@ void load_volume_table() {
printf("=========================\n");
for (int i = 0; i < fstab->num_entries; ++i) {
const Volume* v = &fstab->recs[i];
- printf(" %d %s %s %s %lld\n", i, v->mount_point, v->fs_type, v->blk_device, v->length);
+ printf(" %d %s %s %s %" PRId64 "\n", i, v->mount_point, v->fs_type, v->blk_device, v->length);
}
printf("\n");
}