Skip to content

Commit

Permalink
mtd: tests: mtd_nandecctest: Use pr_fmt macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vikram Narayanan authored and Artem Bityutskiy committed Nov 15, 2012
1 parent 600ed67 commit b6489d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/mtd/tests/mtd_nandecctest.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/list.h>
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b6489d9

Please sign in to comment.