summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorMarcKe <herderkewitz@googlemail.com>2015-01-25 22:43:56 +0100
committerSteve Kondik <steve@cyngn.com>2015-10-30 17:01:09 -0700
commit3533500566093619d97e46574184a746f1d4e805 (patch)
treedc3dc1a636ba82517635d52e5d4580fcf366b73a /healthd
parente72aba1b407f8b6e4bacb827f665e5be77c7124e (diff)
downloadsystem_core-3533500566093619d97e46574184a746f1d4e805.zip
system_core-3533500566093619d97e46574184a746f1d4e805.tar.gz
system_core-3533500566093619d97e46574184a746f1d4e805.tar.bz2
healthd: more descriptive LED path opening error message
Change-Id: I6e3fa9e34a471c387a62dfc3318fd94620a30cd7
Diffstat (limited to 'healthd')
-rw-r--r--healthd/healthd_mode_charger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp
index 3328154..7ebbdfb 100644
--- a/healthd/healthd_mode_charger.cpp
+++ b/healthd/healthd_mode_charger.cpp
@@ -220,7 +220,7 @@ static int set_tricolor_led(int on, int color)
if ((color & leds[i].color) && (access(leds[i].path, R_OK | W_OK) == 0)) {
fd = open(leds[i].path, O_RDWR);
if (fd < 0) {
- LOGE("Could not open red led node\n");
+ LOGE("Could not open led node %d\n", i);
continue;
}
if (on)