dmatest: print message on debug level in case of no error
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 23 Jul 2013 15:36:48 +0000 (18:36 +0300)
committerDan Williams <djbw@fb.com>
Fri, 23 Aug 2013 05:57:35 +0000 (22:57 -0700)
Let's move the behaviour of printing no error message back to the pre v3.10
times. It means we will use debug level in the described case, and a warning
level otherwise.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dan Williams <djbw@fb.com>
drivers/dma/dmatest.c

index eae598986b81302c8f997e6385fe342b9e4da8b1..92f796cdc6ab1dc12c6b895fb2d6e16e5dd92264 100644 (file)
@@ -407,7 +407,11 @@ static int thread_result_add(struct dmatest_info *info,
        list_add_tail(&tr->node, &r->results);
        mutex_unlock(&info->results_lock);
 
-       pr_warn("%s\n", thread_result_get(r->name, tr));
+       if (tr->type == DMATEST_ET_OK)
+               pr_debug("%s\n", thread_result_get(r->name, tr));
+       else
+               pr_warn("%s\n", thread_result_get(r->name, tr));
+
        return 0;
 }