]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
eject: fix compiler warning [-Wformat-overflow]
authorKarel Zak <kzak@redhat.com>
Wed, 22 Apr 2020 08:32:49 +0000 (10:32 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 15 May 2020 10:15:43 +0000 (12:15 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/eject.c

index 2f3b200bf8dee07695dc57306e31093e14ecc640..7d7fa67a08d9542ca7ca88c306503da90e48658f 100644 (file)
@@ -888,7 +888,7 @@ int main(int argc, char **argv)
        }
 
        if (!ctl.device)
-               errx(EXIT_FAILURE, _("%s: unable to find device"), ctl.device);
+               errx(EXIT_FAILURE, _("unable to find device"));
 
        verbose(&ctl, _("device name is `%s'"), ctl.device);