aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 11:01:58 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-20 13:26:00 -0400
commitb989bd4c572ab700e8c67842c37abc7738641310 (patch)
tree506a33d78b77a31ed7c37fabd19676fdef0ae092 /drivers/mtd
parent614c74a75c60602f2a524c86650b576b14883fd5 (diff)
UBI: rename ubi_dbg_dump_seb
I am going to remove the "UBI debugging" compilation option and make the debugging stuff to be always compiled it. This patch is a preparation which renames 'ubi_dbg_dump_seb()' to 'ubi_dump_seb()'. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/debug.c4
-rw-r--r--drivers/mtd/ubi/debug.h6
-rw-r--r--drivers/mtd/ubi/scan.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index 9ae8fff98f49..d33a2831cc07 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -190,11 +190,11 @@ void ubi_dump_sv(const struct ubi_scan_volume *sv)
190} 190}
191 191
192/** 192/**
193 * ubi_dbg_dump_seb - dump a &struct ubi_scan_leb object. 193 * ubi_dump_seb - dump a &struct ubi_scan_leb object.
194 * @seb: the object to dump 194 * @seb: the object to dump
195 * @type: object type: 0 - not corrupted, 1 - corrupted 195 * @type: object type: 0 - not corrupted, 1 - corrupted
196 */ 196 */
197void ubi_dbg_dump_seb(const struct ubi_scan_leb *seb, int type) 197void ubi_dump_seb(const struct ubi_scan_leb *seb, int type)
198{ 198{
199 printk(KERN_DEBUG "eraseblock scanning information dump:\n"); 199 printk(KERN_DEBUG "eraseblock scanning information dump:\n");
200 printk(KERN_DEBUG "\tec %d\n", seb->ec); 200 printk(KERN_DEBUG "\tec %d\n", seb->ec);
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h
index 5e3d4e88d7be..b897c4ab7dc9 100644
--- a/drivers/mtd/ubi/debug.h
+++ b/drivers/mtd/ubi/debug.h
@@ -63,7 +63,7 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr);
63void ubi_dump_vol_info(const struct ubi_volume *vol); 63void ubi_dump_vol_info(const struct ubi_volume *vol);
64void ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx); 64void ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx);
65void ubi_dump_sv(const struct ubi_scan_volume *sv); 65void ubi_dump_sv(const struct ubi_scan_volume *sv);
66void ubi_dbg_dump_seb(const struct ubi_scan_leb *seb, int type); 66void ubi_dump_seb(const struct ubi_scan_leb *seb, int type);
67void ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req); 67void ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req);
68int ubi_dbg_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len); 68int ubi_dbg_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len);
69int ubi_dbg_check_write(struct ubi_device *ubi, const void *buf, int pnum, 69int ubi_dbg_check_write(struct ubi_device *ubi, const void *buf, int pnum,
@@ -198,8 +198,8 @@ ubi_dump_vol_info(const struct ubi_volume *vol) { return; }
198static inline void 198static inline void
199ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx) { return; } 199ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx) { return; }
200static inline void ubi_dump_sv(const struct ubi_scan_volume *sv) { return; } 200static inline void ubi_dump_sv(const struct ubi_scan_volume *sv) { return; }
201static inline void ubi_dbg_dump_seb(const struct ubi_scan_leb *seb, 201static inline void ubi_dump_seb(const struct ubi_scan_leb *seb,
202 int type) { return; } 202 int type) { return; }
203static inline void 203static inline void
204ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req) { return; } 204ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req) { return; }
205static inline void 205static inline void
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
index 23f7ad2d7089..b09c8fa0c670 100644
--- a/drivers/mtd/ubi/scan.c
+++ b/drivers/mtd/ubi/scan.c
@@ -510,7 +510,7 @@ int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_scan_info *si,
510 if (seb->sqnum == sqnum && sqnum != 0) { 510 if (seb->sqnum == sqnum && sqnum != 0) {
511 ubi_err("two LEBs with same sequence number %llu", 511 ubi_err("two LEBs with same sequence number %llu",
512 sqnum); 512 sqnum);
513 ubi_dbg_dump_seb(seb, 0); 513 ubi_dump_seb(seb, 0);
514 ubi_dump_vid_hdr(vid_hdr); 514 ubi_dump_vid_hdr(vid_hdr);
515 return -EINVAL; 515 return -EINVAL;
516 } 516 }
@@ -1583,7 +1583,7 @@ static int paranoid_check_si(struct ubi_device *ubi, struct ubi_scan_info *si)
1583 1583
1584bad_seb: 1584bad_seb:
1585 ubi_err("bad scanning information about LEB %d", seb->lnum); 1585 ubi_err("bad scanning information about LEB %d", seb->lnum);
1586 ubi_dbg_dump_seb(seb, 0); 1586 ubi_dump_seb(seb, 0);
1587 ubi_dump_sv(sv); 1587 ubi_dump_sv(sv);
1588 goto out; 1588 goto out;
1589 1589