From aae7efd7a2c562ecf6b5f8038df392c628620604 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 26 Apr 2018 10:24:03 -0700 Subject: Mark ui_print with __printflike. And fix an issue as a result of the change. Test: mmma -j bootable/recovery Change-Id: I94e6384a1f39e9c37a8ed029d235142738d6e5d3 Merged-In: I94e6384a1f39e9c37a8ed029d235142738d6e5d3 --- recovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recovery.cpp') 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 -- cgit v1.2.3