summaryrefslogtreecommitdiffstats
path: root/updater/blockimg.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-30 21:29:57 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-03-30 21:29:57 +0200
commitf39093d9685d6726006146efb7272c99ce9d74e0 (patch)
tree08e5740743c5bca4da3aec94773a51f5567bfc74 /updater/blockimg.cpp
parentMerge "tests: Remove LOCAL_ADDITIONAL_DEPENDENCIES." am: 3f0a3a2b1d (diff)
parentMerge "updater: Don't append newline when calling uiPrint()." (diff)
downloadandroid_bootable_recovery-f39093d9685d6726006146efb7272c99ce9d74e0.tar
android_bootable_recovery-f39093d9685d6726006146efb7272c99ce9d74e0.tar.gz
android_bootable_recovery-f39093d9685d6726006146efb7272c99ce9d74e0.tar.bz2
android_bootable_recovery-f39093d9685d6726006146efb7272c99ce9d74e0.tar.lz
android_bootable_recovery-f39093d9685d6726006146efb7272c99ce9d74e0.tar.xz
android_bootable_recovery-f39093d9685d6726006146efb7272c99ce9d74e0.tar.zst
android_bootable_recovery-f39093d9685d6726006146efb7272c99ce9d74e0.zip
Diffstat (limited to 'updater/blockimg.cpp')
-rw-r--r--updater/blockimg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 8c0f885a1..4409cbefe 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -18,6 +18,7 @@
#include <errno.h>
#include <dirent.h>
#include <fcntl.h>
+#include <inttypes.h>
#include <linux/fs.h>
#include <pthread.h>
#include <stdarg.h>
@@ -1831,7 +1832,7 @@ Value* CheckFirstBlockFn(const char* name, State* state,
uint16_t mount_count = *reinterpret_cast<uint16_t*>(&block0_buffer[0x400+0x34]);
if (mount_count > 0) {
- uiPrintf(state, "Device was remounted R/W %d times\n", mount_count);
+ uiPrintf(state, "Device was remounted R/W %" PRIu16 " times", mount_count);
uiPrintf(state, "Last remount happened on %s", ctime(&mount_time));
}