summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-04-26 19:24:03 +0200
committerTao Bao <tbao@google.com>2018-04-26 22:42:42 +0200
commitaae7efd7a2c562ecf6b5f8038df392c628620604 (patch)
tree670da6cc146ce288b595aff82ff74920482f33f8 /recovery.cpp
parentMerge "sample_updater: create tools/gen_update_config.py" (diff)
downloadandroid_bootable_recovery-aae7efd7a2c562ecf6b5f8038df392c628620604.tar
android_bootable_recovery-aae7efd7a2c562ecf6b5f8038df392c628620604.tar.gz
android_bootable_recovery-aae7efd7a2c562ecf6b5f8038df392c628620604.tar.bz2
android_bootable_recovery-aae7efd7a2c562ecf6b5f8038df392c628620604.tar.lz
android_bootable_recovery-aae7efd7a2c562ecf6b5f8038df392c628620604.tar.xz
android_bootable_recovery-aae7efd7a2c562ecf6b5f8038df392c628620604.tar.zst
android_bootable_recovery-aae7efd7a2c562ecf6b5f8038df392c628620604.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/recovery.cpp b/recovery.cpp
index dbbac7a7d..7c8374460 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1296,7 +1296,7 @@ static bool is_battery_ok() {
charge_status != android::BATTERY_STATUS_NOT_CHARGING);
android::BatteryProperty capacity;
android::status_t status = monitor.getProperty(android::BATTERY_PROP_CAPACITY, &capacity);
- ui_print("charge_status %d, charged %d, status %d, capacity %lld\n", charge_status,
+ ui_print("charge_status %d, charged %d, status %d, capacity %" PRId64 "\n", charge_status,
charged, status, capacity.valueInt64);
// At startup, the battery drivers in devices like N5X/N6P take some time to load
// the battery profile. Before the load finishes, it reports value 50 as a fake