Fix a log issue in ui.cpp.

It's a copy/paste error when addressing reviewer's comment for commit
6278bdf349.

Test: recovery gives the right message (e.g. "Permission denied") when
      it fails to read max_brightness.

Change-Id: I10372c82595bdc00a6f6725f036c02721b19a1aa
This commit is contained in:
Tao Bao 2017-01-31 21:24:16 -08:00
parent 7ab9c3812d
commit 8eec37330b

2
ui.cpp
View file

@ -100,7 +100,7 @@ bool RecoveryUI::InitScreensaver() {
// we don't have a good way to query the default value.
std::string content;
if (!android::base::ReadFileToString(MAX_BRIGHTNESS_FILE, &content)) {
LOG(WARNING) << "Failed to read max brightness: " << content;
PLOG(WARNING) << "Failed to read max brightness";
return false;
}