From: Vikram Narayanan Date: Wed, 10 Oct 2012 17:37:19 +0000 (+0530) Subject: mtd: tests: mtd_nandecctest: Use pr_fmt macro X-Git-Tag: next-20121019~48^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cd7e8098a6d711dc5411ce526d82be0e630a4482;p=karo-tx-linux.git mtd: tests: mtd_nandecctest: Use pr_fmt macro Use KBUILD_MODNAME instead of hardcoding the filename Signed-off-by: Vikram Narayanan Signed-off-by: Artem Bityutskiy --- 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 #include #include @@ -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: