aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/debug.c')
-rw-r--r--drivers/mtd/ubi/debug.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index 63cb1d7236ce..7335c9ff9d99 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -43,12 +43,12 @@ void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len)
43 return; 43 return;
44 err = mtd_read(ubi->mtd, addr, len, &read, buf); 44 err = mtd_read(ubi->mtd, addr, len, &read, buf);
45 if (err && err != -EUCLEAN) { 45 if (err && err != -EUCLEAN) {
46 ubi_err("error %d while reading %d bytes from PEB %d:%d, read %zd bytes", 46 ubi_err(ubi, "err %d while reading %d bytes from PEB %d:%d, read %zd bytes",
47 err, len, pnum, offset, read); 47 err, len, pnum, offset, read);
48 goto out; 48 goto out;
49 } 49 }
50 50
51 ubi_msg("dumping %d bytes of data from PEB %d, offset %d", 51 ubi_msg(ubi, "dumping %d bytes of data from PEB %d, offset %d",
52 len, pnum, offset); 52 len, pnum, offset);
53 print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 1, buf, len, 1); 53 print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 1, buf, len, 1);
54out: 54out:
@@ -238,8 +238,8 @@ int ubi_debugfs_init(void)
238 if (IS_ERR_OR_NULL(dfs_rootdir)) { 238 if (IS_ERR_OR_NULL(dfs_rootdir)) {
239 int err = dfs_rootdir ? -ENODEV : PTR_ERR(dfs_rootdir); 239 int err = dfs_rootdir ? -ENODEV : PTR_ERR(dfs_rootdir);
240 240
241 ubi_err("cannot create \"ubi\" debugfs directory, error %d\n", 241 pr_err("UBI error: cannot create \"ubi\" debugfs directory, error %d\n",
242 err); 242 err);
243 return err; 243 return err;
244 } 244 }
245 245
@@ -433,7 +433,7 @@ out_remove:
433 debugfs_remove_recursive(d->dfs_dir); 433 debugfs_remove_recursive(d->dfs_dir);
434out: 434out:
435 err = dent ? PTR_ERR(dent) : -ENODEV; 435 err = dent ? PTR_ERR(dent) : -ENODEV;
436 ubi_err("cannot create \"%s\" debugfs file or directory, error %d\n", 436 ubi_err(ubi, "cannot create \"%s\" debugfs file or directory, error %d\n",
437 fname, err); 437 fname, err);
438 return err; 438 return err;
439} 439}