]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
dmesg: correctly print all supported facility names
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 8 Dec 2023 17:10:42 +0000 (18:10 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 11 Dec 2023 11:03:44 +0000 (12:03 +0100)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
sys-utils/dmesg.c

index 4d995ab7f89bc83c4b7a7c4bb65708371ed0487e..f32226f0900253553cde40f5f6036f47af33d576 100644 (file)
@@ -324,7 +324,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(USAGE_SEPARATOR, out);
        fprintf(out, USAGE_HELP_OPTIONS(29));
        fputs(_("\nSupported log facilities:\n"), out);
-       for (i = 0; i < ARRAY_SIZE(level_names); i++)
+       for (i = 0; i < ARRAY_SIZE(facility_names); i++)
                fprintf(out, " %7s - %s\n",
                        facility_names[i].name,
                        _(facility_names[i].help));