diff options
-rw-r--r-- | lib/test_printf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/test_printf.c b/lib/test_printf.c index b23ce824766f..3e21170d327d 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c | |||
@@ -127,6 +127,7 @@ __test(const char *expect, int elen, const char *fmt, ...) | |||
127 | 127 | ||
128 | p = kvasprintf(GFP_KERNEL, fmt, ap); | 128 | p = kvasprintf(GFP_KERNEL, fmt, ap); |
129 | if (p) { | 129 | if (p) { |
130 | total_tests++; | ||
130 | if (memcmp(p, expect, elen+1)) { | 131 | if (memcmp(p, expect, elen+1)) { |
131 | pr_warn("kvasprintf(..., \"%s\", ...) returned '%s', expected '%s'\n", | 132 | pr_warn("kvasprintf(..., \"%s\", ...) returned '%s', expected '%s'\n", |
132 | fmt, p, expect); | 133 | fmt, p, expect); |