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

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

index 6fca5e2602ce3c763989029d624ac019d6dec983..39ae5fd93ca5005eca96b79da9e9525bf56b08a1 100644 (file)
@@ -381,7 +381,7 @@ static int show_flags(struct wd_control *ctl, struct wd_device *wd, uint32_t wan
        }
 
        if (flags)
-               warnx(_("%s: unknown flags 0x%x\n"), wd->devpath, flags);
+               warnx(_("%s: unknown flags 0x%x"), wd->devpath, flags);
 
        scols_print_table(table);
        rc = 0;