]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/ac-power/ac-power.c
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / ac-power / ac-power.c
index 8f35bd8bb834d10938fd78513c74f11ad25f0c94..6d3172d5c19aed8c599595e69e208facce57b910 100644 (file)
@@ -1,5 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /***
   This file is part of systemd.
 
@@ -29,7 +28,7 @@ int main(int argc, char *argv[]) {
 
         r = on_ac_power();
         if (r < 0) {
-                log_error_errno(-r, "Failed to read AC status: %m");
+                log_error_errno(r, "Failed to read AC status: %m");
                 return EXIT_FAILURE;
         }