]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
eject: Remove newline from warning messages
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 18 Apr 2026 08:18:49 +0000 (10:18 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 18 Apr 2026 08:18:49 +0000 (10:18 +0200)
The warnx function adds a newline by itself already.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
sys-utils/eject.c

index d8d4131779259b1d01705c6bc2602daf5b42660d..6e0e7cbc824d09244da34424ac83fc8f9ce3e32c 100644 (file)
@@ -365,7 +365,7 @@ static void changer_select(const struct eject_control *ctl)
        if (ioctl(ctl->fd, CDROMLOADFROMSLOT, ctl->c_arg) != 0)
                err(EXIT_FAILURE, _("CD-ROM load from slot command failed"));
 #else
-       warnx(_("IDE/ATAPI CD-ROM changer not supported by this kernel\n") );
+       warnx(_("IDE/ATAPI CD-ROM changer not supported by this kernel") );
 #endif
 }
 
@@ -385,7 +385,7 @@ static void close_tray(int fd)
        if (status != 0)
                err(EXIT_FAILURE, _("CD-ROM tray close command failed"));
 #else
-       warnx(_("CD-ROM tray close command not supported by this kernel\n"));
+       warnx(_("CD-ROM tray close command not supported by this kernel"));
 #endif
 }