diff options
Diffstat (limited to 'src/ac-power')
-rw-r--r-- | src/ac-power/ac-power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ac-power/ac-power.c b/src/ac-power/ac-power.c index bd1b6ecc72..8f35bd8bb8 100644 --- a/src/ac-power/ac-power.c +++ b/src/ac-power/ac-power.c @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) { r = on_ac_power(); if (r < 0) { - log_error("Failed to read AC status: %s", strerror(-r)); + log_error_errno(-r, "Failed to read AC status: %m"); return EXIT_FAILURE; } |