From 3533500566093619d97e46574184a746f1d4e805 Mon Sep 17 00:00:00 2001 From: MarcKe Date: Sun, 25 Jan 2015 22:43:56 +0100 Subject: healthd: more descriptive LED path opening error message Change-Id: I6e3fa9e34a471c387a62dfc3318fd94620a30cd7 --- healthd/healthd_mode_charger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'healthd') 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) -- cgit v1.1