]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
test_mkfds: (bugfix) listing ALL output values for a given factory
authorMasatake YAMATO <yamato@redhat.com>
Fri, 25 Oct 2024 20:14:06 +0000 (05:14 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 25 Oct 2024 20:19:33 +0000 (05:19 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c

index 42a7d9f38f739c6ce674568d796b27a5339e2267..677d34f8745f3be88e66b8d3744bf0dedc85aea7 100644 (file)
@@ -4132,7 +4132,7 @@ static void list_output_values(const char *factory_name)
        if (!o)
                return;
        for (int i = 0; i < factory->EX_O; i++)
-               printf(fmt, i + 1, *o);
+               printf(fmt, i + 1, o[i]);
 }
 
 static void rename_self(const char *comm)