projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
600ed67
)
mtd: tests: mtd_nandecctest: Use pr_fmt macro
author
Vikram Narayanan
<
[email protected]
>
Wed, 10 Oct 2012 17:37:19 +0000
(23:07 +0530)
committer
Artem Bityutskiy
<
[email protected]
>
Thu, 15 Nov 2012 13:37:48 +0000
(15:37 +0200)
Use KBUILD_MODNAME instead of hardcoding the filename
Signed-off-by: Vikram Narayanan <
[email protected]
>
Signed-off-by: Artem Bityutskiy <
[email protected]
>
drivers/mtd/tests/mtd_nandecctest.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/tests/mtd_nandecctest.c
b/drivers/mtd/tests/mtd_nandecctest.c
index b437fa425077db48d4bb76da8d343e9739e56205..1eee264509a86cce86421e7fe730dbdf94d79a75 100644
(file)
--- 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: