From: Rasmus Villemoes Date: Sat, 16 Jan 2016 00:59:02 +0000 (-0800) Subject: lib/test_printf.c: account for kvasprintf tests X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b79a7db37d560c9e4b6fdb5314cb8b226a2d6567;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git lib/test_printf.c: account for kvasprintf tests These should also count as performed tests. Signed-off-by: Rasmus Villemoes Acked-by: Kees Cook Cc: Al Viro Cc: Andy Shevchenko Cc: Ingo Molnar Cc: Joe Perches Cc: Maurizio Lombardi Cc: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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, ...) p = kvasprintf(GFP_KERNEL, fmt, ap); if (p) { + total_tests++; if (memcmp(p, expect, elen+1)) { pr_warn("kvasprintf(..., \"%s\", ...) returned '%s', expected '%s'\n", fmt, p, expect);