summaryrefslogtreecommitdiff
path: root/drivers/mtd/tests/mtd_nandecctest.c
diff options
context:
space:
mode:
authorVikram Narayanan <vikram186@gmail.com>2012-10-10 21:37:19 +0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-11-15 17:37:48 +0400
commitb6489d9706ca6cb42892571ac82b71ad92675036 (patch)
treedd858710b94e6c553c2af70314624d8e9647f4ca /drivers/mtd/tests/mtd_nandecctest.c
parent600ed67562e5349be92867825ab5505526eac139 (diff)
downloadlinux-b6489d9706ca6cb42892571ac82b71ad92675036.tar.xz
mtd: tests: mtd_nandecctest: Use pr_fmt macro
Use KBUILD_MODNAME instead of hardcoding the filename Signed-off-by: Vikram Narayanan <vikram186@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/tests/mtd_nandecctest.c')
-rw-r--r--drivers/mtd/tests/mtd_nandecctest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c
index b437fa425077..1eee264509a8 100644
--- a/drivers/mtd/tests/mtd_nandecctest.c
+++ b/drivers/mtd/tests/mtd_nandecctest.c
@@ -1,3 +1,5 @@
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/list.h>
@@ -264,13 +266,13 @@ static int nand_ecc_test_run(const size_t size)
correct_data, size);
if (err) {
- pr_err("mtd_nandecctest: not ok - %s-%zd\n",
+ pr_err("not ok - %s-%zd\n",
nand_ecc_test[i].name, size);
dump_data_ecc(error_data, error_ecc,
correct_data, correct_ecc, size);
break;
}
- pr_info("mtd_nandecctest: ok - %s-%zd\n",
+ pr_info("ok - %s-%zd\n",
nand_ecc_test[i].name, size);
}
error: