diff options
| author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-16 10:53:17 -0400 |
|---|---|---|
| committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:25:59 -0400 |
| commit | 766381f049100db0763e1a930a7b9d16632aa49c (patch) | |
| tree | a60afdf37d931d7ed4d9d10fe376a8e3a0567722 /drivers | |
| parent | 4415626732defb5a4567a0a757c7c5baae7ca846 (diff) | |
UBI: rename ubi_dbg_dump_vol_info
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_vol_info()' to 'ubi_dump_vol_info()'.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers')
| -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 | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c index dce463d3c58..2d3dc2624b6 100644 --- a/drivers/mtd/ubi/debug.c +++ b/drivers/mtd/ubi/debug.c | |||
| @@ -109,10 +109,10 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr) | |||
| 109 | #ifdef CONFIG_MTD_UBI_DEBUG | 109 | #ifdef CONFIG_MTD_UBI_DEBUG |
| 110 | 110 | ||
| 111 | /** | 111 | /** |
| 112 | * ubi_dbg_dump_vol_info- dump volume information. | 112 | * ubi_dump_vol_info - dump volume information. |
| 113 | * @vol: UBI volume description object | 113 | * @vol: UBI volume description object |
| 114 | */ | 114 | */ |
| 115 | void ubi_dbg_dump_vol_info(const struct ubi_volume *vol) | 115 | void ubi_dump_vol_info(const struct ubi_volume *vol) |
| 116 | { | 116 | { |
| 117 | printk(KERN_DEBUG "Volume information dump:\n"); | 117 | printk(KERN_DEBUG "Volume information dump:\n"); |
| 118 | printk(KERN_DEBUG "\tvol_id %d\n", vol->vol_id); | 118 | printk(KERN_DEBUG "\tvol_id %d\n", vol->vol_id); |
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h index b8672c947bb..ca36f2db2b0 100644 --- a/drivers/mtd/ubi/debug.h +++ b/drivers/mtd/ubi/debug.h | |||
| @@ -60,7 +60,7 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr); | |||
| 60 | /* Initialization and build messages */ | 60 | /* Initialization and build messages */ |
| 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_dbg_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_dbg_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); |
| @@ -194,7 +194,7 @@ static inline int ubi_dbg_is_erase_failure(const struct ubi_device *ubi) | |||
| 194 | #define dbg_bld(fmt, ...) ubi_dbg_msg(fmt, ##__VA_ARGS__) | 194 | #define dbg_bld(fmt, ...) ubi_dbg_msg(fmt, ##__VA_ARGS__) |
| 195 | 195 | ||
| 196 | static inline void | 196 | static inline void |
| 197 | ubi_dbg_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_dbg_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; } |
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index 863835f4aef..906f972f950 100644 --- a/drivers/mtd/ubi/vmt.c +++ b/drivers/mtd/ubi/vmt.c | |||
| @@ -855,7 +855,7 @@ static int paranoid_check_volume(struct ubi_device *ubi, int vol_id) | |||
| 855 | fail: | 855 | 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_dbg_dump_vol_info(vol); | 858 | ubi_dump_vol_info(vol); |
| 859 | ubi_dbg_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id); | 859 | ubi_dbg_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); |
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c index a6f4b13d841..7ef3de0ffbf 100644 --- a/drivers/mtd/ubi/vtbl.c +++ b/drivers/mtd/ubi/vtbl.c | |||
| @@ -701,7 +701,7 @@ static int check_sv(const struct ubi_volume *vol, | |||
| 701 | bad: | 701 | bad: |
| 702 | ubi_err("bad scanning information, error %d", err); | 702 | ubi_err("bad scanning information, error %d", err); |
| 703 | ubi_dbg_dump_sv(sv); | 703 | ubi_dbg_dump_sv(sv); |
| 704 | ubi_dbg_dump_vol_info(vol); | 704 | ubi_dump_vol_info(vol); |
| 705 | return -EINVAL; | 705 | return -EINVAL; |
| 706 | } | 706 | } |
| 707 | 707 | ||
