xbattmon

simple battery monitor for X
git clone git://git.2f30.org/xbattmon.git
Log | Files | Refs | README | LICENSE

commit b443b856bacb3fc86ff6d769914d3280ed74819c
parent f06e0d2419d990fd662fb709ba5b57d152f7c6ce
Author: sin <sin@2f30.org>
Date:   Sun, 19 Apr 2015 14:12:38 +0100

Print warning when sysfs is not available

Diffstat:
xbattmon.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/xbattmon.c b/xbattmon.c @@ -226,6 +226,7 @@ fail1: if (fp == NULL) { if (retry-- == 0) err(1, "fopen %s", PATH_BAT_CAP); + warn("fopen %s", PATH_BAT_CAP); sleep(1); goto fail1; } @@ -241,6 +242,7 @@ fail2: if (fp == NULL) { if (retry-- == 0) err(1, "fopen %s", PATH_AC_ONLINE); + warn("fopen %s", PATH_BAT_CAP); sleep(1); goto fail2; }