]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: kill newline characters from log_error_errno() calls
authorDaniel Mack <daniel@zonque.org>
Fri, 24 Apr 2015 19:50:36 +0000 (21:50 +0200)
committerDaniel Mack <daniel@zonque.org>
Fri, 24 Apr 2015 19:50:36 +0000 (21:50 +0200)
log_error_errno() already adds a newline, so drop them.

src/systemctl/systemctl.c

index 12126737fcc32c3301bfb349867e0e8c453cc676..eb9737d57732b69d0c6a76d9601f3c66cfdaa581 100644 (file)
@@ -7290,7 +7290,7 @@ static int halt_main(sd_bus *bus) {
 
                 r = sd_bus_open_system(&b);
                 if (r < 0)
-                        return log_error_errno(r, "Unable to open system bus: %m\n");
+                        return log_error_errno(r, "Unable to open system bus: %m");
 
                 m = strv_join(arg_wall, " ");
                 if (!m)
@@ -7467,7 +7467,7 @@ int main(int argc, char*argv[]) {
 
                 r = sd_bus_open_system(&b);
                 if (r < 0)
-                        return log_error_errno(r, "Unable to open system bus: %m\n");
+                        return log_error_errno(r, "Unable to open system bus: %m");
 
                 if (arg_wall) {
                         m = strv_join(arg_wall, " ");