]> 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>
Tue, 12 Dec 2023 11:47:31 +0000 (12:47 +0100)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit e07c072c15fe11efe8c3d034cd4b362593f0bd20)

sys-utils/dmesg.c

index 717cc588b2ca3dcc720551f0c824a043ef46fd08..3b3580db0f17d80960d1d4754fe198da4e851eb2 100644 (file)
@@ -323,7 +323,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(USAGE_SEPARATOR, out);
        printf(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));