From 8eec37330b94e60f2d632fade87f2f64626e1423 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Tue, 31 Jan 2017 21:24:16 -0800 Subject: Fix a log issue in ui.cpp. It's a copy/paste error when addressing reviewer's comment for commit 6278bdf3490a2f6682f5a9c47350b3d9f92a9165. Test: recovery gives the right message (e.g. "Permission denied") when it fails to read max_brightness. Change-Id: I10372c82595bdc00a6f6725f036c02721b19a1aa --- ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.cpp b/ui.cpp index 5efdc5a48..3ecd6d125 100644 --- a/ui.cpp +++ b/ui.cpp @@ -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; } -- cgit v1.2.3