diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-16 11:01:58 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:26:00 -0400 |
commit | b989bd4c572ab700e8c67842c37abc7738641310 (patch) | |
tree | 506a33d78b77a31ed7c37fabd19676fdef0ae092 /drivers/mtd | |
parent | 614c74a75c60602f2a524c86650b576b14883fd5 (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.c | 4 | ||||
-rw-r--r-- | drivers/mtd/ubi/debug.h | 6 | ||||
-rw-r--r-- | drivers/mtd/ubi/scan.c | 4 |
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 | */ |
197 | void ubi_dbg_dump_seb(const struct ubi_scan_leb *seb, int type) | 197 | void 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); | |||
63 | void ubi_dump_vol_info(const struct ubi_volume *vol); | 63 | void ubi_dump_vol_info(const struct ubi_volume *vol); |
64 | void ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx); | 64 | void ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx); |
65 | void ubi_dump_sv(const struct ubi_scan_volume *sv); | 65 | void ubi_dump_sv(const struct ubi_scan_volume *sv); |
66 | void ubi_dbg_dump_seb(const struct ubi_scan_leb *seb, int type); | 66 | void ubi_dump_seb(const struct ubi_scan_leb *seb, int type); |
67 | void ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req); | 67 | void ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req); |
68 | int ubi_dbg_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len); | 68 | int ubi_dbg_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len); |
69 | int ubi_dbg_check_write(struct ubi_device *ubi, const void *buf, int pnum, | 69 | int 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; } | |||
198 | static inline void | 198 | static inline void |
199 | ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx) { return; } | 199 | ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx) { return; } |
200 | static inline void ubi_dump_sv(const struct ubi_scan_volume *sv) { return; } | 200 | static inline void ubi_dump_sv(const struct ubi_scan_volume *sv) { return; } |
201 | static inline void ubi_dbg_dump_seb(const struct ubi_scan_leb *seb, | 201 | static inline void ubi_dump_seb(const struct ubi_scan_leb *seb, |
202 | int type) { return; } | 202 | int type) { return; } |
203 | static inline void | 203 | static inline void |
204 | ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req) { return; } | 204 | ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req) { return; } |
205 | static inline void | 205 | static 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 | ||
1584 | bad_seb: | 1584 | bad_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 | ||