diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-16 10:56:50 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:25:59 -0400 |
commit | 1f021e1de56f79cb4575b14f9ebf1ffb9dc9db0b (patch) | |
tree | 4a98c3c13c62a5705ae00058c9b50d6f749af98f | |
parent | 766381f049100db0763e1a930a7b9d16632aa49c (diff) |
UBI: rename ubi_dbg_dump_vtbl_record
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_vtbl_record()' to 'ubi_dump_vtbl_record()'.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r-- | drivers/mtd/ubi/debug.c | 4 | ||||
-rw-r--r-- | drivers/mtd/ubi/debug.h | 4 | ||||
-rw-r--r-- | drivers/mtd/ubi/vmt.c | 2 | ||||
-rw-r--r-- | drivers/mtd/ubi/vtbl.c | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c index 2d3dc2624b61..9b16bcc1b172 100644 --- a/drivers/mtd/ubi/debug.c +++ b/drivers/mtd/ubi/debug.c | |||
@@ -139,11 +139,11 @@ void ubi_dump_vol_info(const struct ubi_volume *vol) | |||
139 | } | 139 | } |
140 | 140 | ||
141 | /** | 141 | /** |
142 | * ubi_dbg_dump_vtbl_record - dump a &struct ubi_vtbl_record object. | 142 | * ubi_dump_vtbl_record - dump a &struct ubi_vtbl_record object. |
143 | * @r: the object to dump | 143 | * @r: the object to dump |
144 | * @idx: volume table index | 144 | * @idx: volume table index |
145 | */ | 145 | */ |
146 | void ubi_dbg_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx) | 146 | void ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx) |
147 | { | 147 | { |
148 | int name_len = be16_to_cpu(r->name_len); | 148 | int name_len = be16_to_cpu(r->name_len); |
149 | 149 | ||
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h index ca36f2db2b0e..9728da4444cc 100644 --- a/drivers/mtd/ubi/debug.h +++ b/drivers/mtd/ubi/debug.h | |||
@@ -61,7 +61,7 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr); | |||
61 | #define dbg_bld(fmt, ...) ubi_dbg_msg("bld", fmt, ##__VA_ARGS__) | 61 | #define dbg_bld(fmt, ...) ubi_dbg_msg("bld", fmt, ##__VA_ARGS__) |
62 | 62 | ||
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_dbg_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_dbg_dump_sv(const struct ubi_scan_volume *sv); | 65 | void ubi_dbg_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_dbg_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); |
@@ -196,7 +196,7 @@ static inline int ubi_dbg_is_erase_failure(const struct ubi_device *ubi) | |||
196 | static inline void | 196 | static inline void |
197 | ubi_dump_vol_info(const struct ubi_volume *vol) { return; } | 197 | ubi_dump_vol_info(const struct ubi_volume *vol) { return; } |
198 | static inline void | 198 | static inline void |
199 | ubi_dbg_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_dbg_dump_sv(const struct ubi_scan_volume *sv) { return; } | 200 | static inline void ubi_dbg_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_dbg_dump_seb(const struct ubi_scan_leb *seb, |
202 | int type) { return; } | 202 | int type) { return; } |
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index 906f972f950a..a4b4c300a4e1 100644 --- a/drivers/mtd/ubi/vmt.c +++ b/drivers/mtd/ubi/vmt.c | |||
@@ -856,7 +856,7 @@ fail: | |||
856 | ubi_err("paranoid check failed for volume %d", vol_id); | 856 | ubi_err("paranoid check failed for volume %d", vol_id); |
857 | if (vol) | 857 | if (vol) |
858 | ubi_dump_vol_info(vol); | 858 | ubi_dump_vol_info(vol); |
859 | ubi_dbg_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id); | 859 | ubi_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id); |
860 | dump_stack(); | 860 | dump_stack(); |
861 | spin_unlock(&ubi->volumes_lock); | 861 | spin_unlock(&ubi->volumes_lock); |
862 | return -EINVAL; | 862 | return -EINVAL; |
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c index 7ef3de0ffbf7..897502fba301 100644 --- a/drivers/mtd/ubi/vtbl.c +++ b/drivers/mtd/ubi/vtbl.c | |||
@@ -197,7 +197,7 @@ static int vtbl_check(const struct ubi_device *ubi, | |||
197 | if (be32_to_cpu(vtbl[i].crc) != crc) { | 197 | if (be32_to_cpu(vtbl[i].crc) != crc) { |
198 | ubi_err("bad CRC at record %u: %#08x, not %#08x", | 198 | ubi_err("bad CRC at record %u: %#08x, not %#08x", |
199 | i, crc, be32_to_cpu(vtbl[i].crc)); | 199 | i, crc, be32_to_cpu(vtbl[i].crc)); |
200 | ubi_dbg_dump_vtbl_record(&vtbl[i], i); | 200 | ubi_dump_vtbl_record(&vtbl[i], i); |
201 | return 1; | 201 | return 1; |
202 | } | 202 | } |
203 | 203 | ||
@@ -277,8 +277,8 @@ static int vtbl_check(const struct ubi_device *ubi, | |||
277 | !strncmp(vtbl[i].name, vtbl[n].name, len1)) { | 277 | !strncmp(vtbl[i].name, vtbl[n].name, len1)) { |
278 | ubi_err("volumes %d and %d have the same name" | 278 | ubi_err("volumes %d and %d have the same name" |
279 | " \"%s\"", i, n, vtbl[i].name); | 279 | " \"%s\"", i, n, vtbl[i].name); |
280 | ubi_dbg_dump_vtbl_record(&vtbl[i], i); | 280 | ubi_dump_vtbl_record(&vtbl[i], i); |
281 | ubi_dbg_dump_vtbl_record(&vtbl[n], n); | 281 | ubi_dump_vtbl_record(&vtbl[n], n); |
282 | return -EINVAL; | 282 | return -EINVAL; |
283 | } | 283 | } |
284 | } | 284 | } |
@@ -288,7 +288,7 @@ static int vtbl_check(const struct ubi_device *ubi, | |||
288 | 288 | ||
289 | bad: | 289 | bad: |
290 | ubi_err("volume table check failed: record %d, error %d", i, err); | 290 | ubi_err("volume table check failed: record %d, error %d", i, err); |
291 | ubi_dbg_dump_vtbl_record(&vtbl[i], i); | 291 | ubi_dump_vtbl_record(&vtbl[i], i); |
292 | return -EINVAL; | 292 | return -EINVAL; |
293 | } | 293 | } |
294 | 294 | ||