summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2016-08-06 03:00:04 +0200
committerTianjie Xu <xunchang@google.com>2016-09-01 20:33:25 +0200
commit7b0ad9c638176dc364dabb65b363536055a0ea9c (patch)
tree73848b33067169c72788f517063c3d9659e783c0 /screen_ui.cpp
parentMerge "minadbd: rename adb_server_main to minadbd_main." (diff)
downloadandroid_bootable_recovery-7b0ad9c638176dc364dabb65b363536055a0ea9c.tar
android_bootable_recovery-7b0ad9c638176dc364dabb65b363536055a0ea9c.tar.gz
android_bootable_recovery-7b0ad9c638176dc364dabb65b363536055a0ea9c.tar.bz2
android_bootable_recovery-7b0ad9c638176dc364dabb65b363536055a0ea9c.tar.lz
android_bootable_recovery-7b0ad9c638176dc364dabb65b363536055a0ea9c.tar.xz
android_bootable_recovery-7b0ad9c638176dc364dabb65b363536055a0ea9c.tar.zst
android_bootable_recovery-7b0ad9c638176dc364dabb65b363536055a0ea9c.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index 369755438..79b5466a8 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -31,6 +31,7 @@
#include <vector>
+#include <android-base/logging.h>
#include <android-base/strings.h>
#include <android-base/stringprintf.h>
#include <cutils/properties.h>
@@ -405,14 +406,14 @@ void ScreenRecoveryUI::ProgressThreadLoop() {
void ScreenRecoveryUI::LoadBitmap(const char* filename, GRSurface** surface) {
int result = res_create_display_surface(filename, surface);
if (result < 0) {
- LOGE("couldn't load bitmap %s (error %d)\n", filename, result);
+ LOG(ERROR) << "couldn't load bitmap " << filename << " (error " << result << ")";
}
}
void ScreenRecoveryUI::LoadLocalizedBitmap(const char* filename, GRSurface** surface) {
int result = res_create_localized_alpha_surface(filename, locale, surface);
if (result < 0) {
- LOGE("couldn't load bitmap %s (error %d)\n", filename, result);
+ LOG(ERROR) << "couldn't load bitmap " << filename << " (error " << result << ")";
}
}