]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - tools/perf/tests/builtin-test.c
perf tests: Fix indexing when invoking subtests
[mirror_ubuntu-bionic-kernel.git] / tools / perf / tests / builtin-test.c
index 5d23ec7f7874c0ac26c1a4e1f27b52d0cc39e565..857d323c7a84c157d2cfbe0b9d3db44ea6b9dceb 100644 (file)
@@ -376,7 +376,7 @@ static int test_and_print(struct test *t, bool force_skip, int subtest)
        if (!t->subtest.get_nr)
                pr_debug("%s:", t->desc);
        else
-               pr_debug("%s subtest %d:", t->desc, subtest);
+               pr_debug("%s subtest %d:", t->desc, subtest + 1);
 
        switch (err) {
        case TEST_OK: