]> 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>
Wed, 22 Apr 2020 08:32:49 +0000 (10:32 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/eject.c

index f1087f3e808cdf956cdfd38f18c156a6b65c5dc6..11874769774a044095f76a3f49f558f1ca48e54f 100644 (file)
@@ -887,7 +887,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);