diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-08-27 08:13:05 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-09-04 02:39:02 -0400 |
commit | e28453bbb76c290d67eb28b3ff6875a6519c3998 (patch) | |
tree | 71ca0633ec0bd8723af61c2e57922dda7394ebe5 /drivers/mtd/ubi/attach.c | |
parent | 049333cecbde11988c49ad4d7861eefbc3534422 (diff) |
UBI: use pr_ helper instead of printk
Use 'pr_err()' instead of 'printk(KERN_ERR', etc.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/attach.c')
-rw-r--r-- | drivers/mtd/ubi/attach.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/attach.c b/drivers/mtd/ubi/attach.c index d8e92b6a33f6..e1d90683e357 100644 --- a/drivers/mtd/ubi/attach.c +++ b/drivers/mtd/ubi/attach.c | |||
@@ -1074,10 +1074,10 @@ static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai) | |||
1074 | if (ai->corr_peb_count) { | 1074 | if (ai->corr_peb_count) { |
1075 | ubi_err("%d PEBs are corrupted and preserved", | 1075 | ubi_err("%d PEBs are corrupted and preserved", |
1076 | ai->corr_peb_count); | 1076 | ai->corr_peb_count); |
1077 | printk(KERN_ERR "Corrupted PEBs are:"); | 1077 | pr_err("Corrupted PEBs are:"); |
1078 | list_for_each_entry(aeb, &ai->corr, u.list) | 1078 | list_for_each_entry(aeb, &ai->corr, u.list) |
1079 | printk(KERN_CONT " %d", aeb->pnum); | 1079 | pr_cont(" %d", aeb->pnum); |
1080 | printk(KERN_CONT "\n"); | 1080 | pr_cont("\n"); |
1081 | 1081 | ||
1082 | /* | 1082 | /* |
1083 | * If too many PEBs are corrupted, we refuse attaching, | 1083 | * If too many PEBs are corrupted, we refuse attaching, |