summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-10-13 21:46:38 +0200
committerTao Bao <tbao@google.com>2017-10-12 01:56:12 +0200
commit99f0d9e52bdbe314d77300f883d66e4470d4a5ee (patch)
tree1f2d542a9d43d56366dd20dedd607c678adb7bc7 /recovery.cpp
parentMerge "applypatch: Use shared libs for libbase/libcrypto/liblog/libziparchive." (diff)
downloadandroid_bootable_recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.tar
android_bootable_recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.tar.gz
android_bootable_recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.tar.bz2
android_bootable_recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.tar.lz
android_bootable_recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.tar.xz
android_bootable_recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.tar.zst
android_bootable_recovery-99f0d9e52bdbe314d77300f883d66e4470d4a5ee.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 243ee4af3..a89916337 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1214,9 +1214,8 @@ static Device::BuiltinAction prompt_and_wait(Device* device, int status) {
}
}
-static void
-print_property(const char *key, const char *name, void *cookie) {
- printf("%s=%s\n", key, name);
+static void print_property(const char* key, const char* name, void* /* cookie */) {
+ printf("%s=%s\n", key, name);
}
static std::string load_locale_from_cache() {
@@ -1250,14 +1249,14 @@ void ui_print(const char* format, ...) {
static constexpr char log_characters[] = "VDIWEF";
-void UiLogger(android::base::LogId id, android::base::LogSeverity severity,
- const char* tag, const char* file, unsigned int line,
- const char* message) {
- if (severity >= android::base::ERROR && ui != nullptr) {
- ui->Print("E:%s\n", message);
- } else {
- fprintf(stdout, "%c:%s\n", log_characters[severity], message);
- }
+void UiLogger(android::base::LogId /* id */, android::base::LogSeverity severity,
+ const char* /* tag */, const char* /* file */, unsigned int /* line */,
+ const char* message) {
+ if (severity >= android::base::ERROR && ui != nullptr) {
+ ui->Print("E:%s\n", message);
+ } else {
+ fprintf(stdout, "%c:%s\n", log_characters[severity], message);
+ }
}
static bool is_battery_ok() {