diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-07-23 18:36:48 +0300 |
---|---|---|
committer | Dan Williams <djbw@fb.com> | 2013-08-22 22:57:35 -0700 |
commit | ad5278cd8d4b12e14a9a00fa7443a7a239ae2219 (patch) | |
tree | 880470c39efc992e362804850c129ff32bc704e9 /drivers/dma/dmatest.c | |
parent | e24775e41ffc59d9ae8c1f2a9a4ff9f79db0e573 (diff) | |
download | blackbird-op-linux-ad5278cd8d4b12e14a9a00fa7443a7a239ae2219.tar.gz blackbird-op-linux-ad5278cd8d4b12e14a9a00fa7443a7a239ae2219.zip |
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>
Diffstat (limited to 'drivers/dma/dmatest.c')
-rw-r--r-- | drivers/dma/dmatest.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index eae598986b81..92f796cdc6ab 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c @@ -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; } |