commit b3ebf1faa130cacf861948d38b3198c27cab776f
parent aac487e084a93e547e3b9b4eb04054350d284ef5
Author: sin <sin@2f30.org>
Date: Fri, 13 May 2016 09:50:58 +0100
Use correct filename when printing the warning
Reported by Neoklis Kyriazis
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xbattmon.c b/xbattmon.c
@@ -293,7 +293,7 @@ fail2:
if (!fp) {
if (retry-- == 0)
err(1, "fopen %s", PATH_AC_ONLINE);
- warn("fopen %s", PATH_BAT_CAP);
+ warn("fopen %s", PATH_AC_ONLINE);
sleep(1);
goto fail2;
}