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 19:43:14 +0200
commit747781433fb01f745529c7e9dd97c5599070ad0d (patch)
tree00eaba2e25fd5e2e8091cd456cae9b39ac880831 /screen_ui.cpp
parentMerge "minadbd: rename adb_server_main to minadbd_main." am: 818394869d am: aad4cef0f3 am: a331d85806 (diff)
downloadandroid_bootable_recovery-747781433fb01f745529c7e9dd97c5599070ad0d.tar
android_bootable_recovery-747781433fb01f745529c7e9dd97c5599070ad0d.tar.gz
android_bootable_recovery-747781433fb01f745529c7e9dd97c5599070ad0d.tar.bz2
android_bootable_recovery-747781433fb01f745529c7e9dd97c5599070ad0d.tar.lz
android_bootable_recovery-747781433fb01f745529c7e9dd97c5599070ad0d.tar.xz
android_bootable_recovery-747781433fb01f745529c7e9dd97c5599070ad0d.tar.zst
android_bootable_recovery-747781433fb01f745529c7e9dd97c5599070ad0d.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 4866873a1..cfaecd922 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>
@@ -417,14 +418,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 << ")";
}
}