Commit b6489d97 authored by Vikram Narayanan's avatar Vikram Narayanan Committed by Artem Bityutskiy

mtd: tests: mtd_nandecctest: Use pr_fmt macro

Use KBUILD_MODNAME instead of hardcoding the filename
Signed-off-by: default avatarVikram Narayanan <vikram186@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 600ed675
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/list.h> #include <linux/list.h>
...@@ -264,13 +266,13 @@ static int nand_ecc_test_run(const size_t size) ...@@ -264,13 +266,13 @@ static int nand_ecc_test_run(const size_t size)
correct_data, size); correct_data, size);
if (err) { if (err) {
pr_err("mtd_nandecctest: not ok - %s-%zd\n", pr_err("not ok - %s-%zd\n",
nand_ecc_test[i].name, size); nand_ecc_test[i].name, size);
dump_data_ecc(error_data, error_ecc, dump_data_ecc(error_data, error_ecc,
correct_data, correct_ecc, size); correct_data, correct_ecc, size);
break; break;
} }
pr_info("mtd_nandecctest: ok - %s-%zd\n", pr_info("ok - %s-%zd\n",
nand_ecc_test[i].name, size); nand_ecc_test[i].name, size);
} }
error: error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment