]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (mkfds) print a whitespace only when the running factory has "report" method
authorMasatake YAMATO <yamato@redhat.com>
Tue, 7 Mar 2023 14:09:32 +0000 (23:09 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 18 May 2023 18:27:27 +0000 (03:27 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c

index 194c1755044d34683a864c74a3ed89ffd19d145e..4cae1e06db5356a65de52c46315309f0b3244a23 100644 (file)
@@ -2645,9 +2645,10 @@ int main(int argc, char **argv)
 
        if (!quiet) {
                printf("%d", getpid());
-               putchar('\n');
-               if (factory->report)
+               if (factory->report) {
+                       putchar(' ');
                        factory->report(factory, data, stdout);
+               }
                fflush(stdout);
        }