Commit ad5278cd8d4b12e14a9a00fa7443a7a239ae2219
Committed by
Dan Williams
1 parent
e24775e41f
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
dmatest: print message on debug level in case of no error
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>
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
drivers/dma/dmatest.c
... | ... | @@ -407,7 +407,11 @@ |
407 | 407 | list_add_tail(&tr->node, &r->results); |
408 | 408 | mutex_unlock(&info->results_lock); |
409 | 409 | |
410 | - pr_warn("%s\n", thread_result_get(r->name, tr)); | |
410 | + if (tr->type == DMATEST_ET_OK) | |
411 | + pr_debug("%s\n", thread_result_get(r->name, tr)); | |
412 | + else | |
413 | + pr_warn("%s\n", thread_result_get(r->name, tr)); | |
414 | + | |
411 | 415 | return 0; |
412 | 416 | } |
413 | 417 |