diff options
author | Tianjie Xu <xunchang@google.com> | 2016-09-02 01:14:58 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-09-02 01:14:58 +0200 |
commit | ec6a47ae461ecdc78141b457acba1537d913e1e7 (patch) | |
tree | c22d18bfe3e836f9187f893042e9bc50b329a062 /screen_ui.cpp | |
parent | Merge "Check an edge case when read(2) returns 0" am: 3202b8faf4 (diff) | |
parent | Merge "Switch recovery to libbase logging" (diff) | |
download | android_bootable_recovery-ec6a47ae461ecdc78141b457acba1537d913e1e7.tar android_bootable_recovery-ec6a47ae461ecdc78141b457acba1537d913e1e7.tar.gz android_bootable_recovery-ec6a47ae461ecdc78141b457acba1537d913e1e7.tar.bz2 android_bootable_recovery-ec6a47ae461ecdc78141b457acba1537d913e1e7.tar.lz android_bootable_recovery-ec6a47ae461ecdc78141b457acba1537d913e1e7.tar.xz android_bootable_recovery-ec6a47ae461ecdc78141b457acba1537d913e1e7.tar.zst android_bootable_recovery-ec6a47ae461ecdc78141b457acba1537d913e1e7.zip |
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r-- | screen_ui.cpp | 5 |
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 << ")"; } } |