]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Actually print the line number
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:17:26 +0000 (13:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:17:26 +0000 (13:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/testsuite.h

index a7e2e44d3896bf196b2f340ad09a92dffd5b8e4c..93f6daecd785d45fa775e43ee89e0706b20c69cb 100644 (file)
@@ -108,7 +108,7 @@ static inline int testsuite_compare_string_arrays(char* array1[], char* array2[]
 ERROR:
        // Dump both arrays
        for (line1 = array1, line2 = array2, num = 0; *line1 && *line2; line1++, line2++, num++) {
-               printf("Line %zu:\n");
+               printf("Line %zu:\n", num);
                printf(" 1: %s", *line1);
                printf(" 2: %s", *line2);
        }