diff options
author | Vikram Narayanan <vikram186@gmail.com> | 2012-10-10 13:37:19 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-11-15 08:37:48 -0500 |
commit | b6489d9706ca6cb42892571ac82b71ad92675036 (patch) | |
tree | dd858710b94e6c553c2af70314624d8e9647f4ca /drivers/mtd/tests/mtd_nandecctest.c | |
parent | 600ed67562e5349be92867825ab5505526eac139 (diff) |
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.c | 6 |
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 @@ | |||
1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
2 | |||
1 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
2 | #include <linux/module.h> | 4 | #include <linux/module.h> |
3 | #include <linux/list.h> | 5 | #include <linux/list.h> |
@@ -264,13 +266,13 @@ static int nand_ecc_test_run(const size_t size) | |||
264 | correct_data, size); | 266 | correct_data, size); |
265 | 267 | ||
266 | if (err) { | 268 | if (err) { |
267 | pr_err("mtd_nandecctest: not ok - %s-%zd\n", | 269 | pr_err("not ok - %s-%zd\n", |
268 | nand_ecc_test[i].name, size); | 270 | nand_ecc_test[i].name, size); |
269 | dump_data_ecc(error_data, error_ecc, | 271 | dump_data_ecc(error_data, error_ecc, |
270 | correct_data, correct_ecc, size); | 272 | correct_data, correct_ecc, size); |
271 | break; | 273 | break; |
272 | } | 274 | } |
273 | pr_info("mtd_nandecctest: ok - %s-%zd\n", | 275 | pr_info("ok - %s-%zd\n", |
274 | nand_ecc_test[i].name, size); | 276 | nand_ecc_test[i].name, size); |
275 | } | 277 | } |
276 | error: | 278 | error: |