aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 11:03:32 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-20 13:26:00 -0400
commit718c00bb8fb00c68977f1076619cdfb050f92ba5 (patch)
tree347ce4cc78a94ba97367b1804422ebaf95718285
parentb989bd4c572ab700e8c67842c37abc7738641310 (diff)
UBI: rename ubi_dbg_dump_mkvol_req
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_mkvol_req()' to 'ubi_dump_mkvol_req()'. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r--drivers/mtd/ubi/cdev.c2
-rw-r--r--drivers/mtd/ubi/debug.c4
-rw-r--r--drivers/mtd/ubi/debug.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index f4061126926b..633ac82bbd22 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -644,7 +644,7 @@ static int verify_mkvol_req(const struct ubi_device *ubi,
644 644
645bad: 645bad:
646 dbg_err("bad volume creation request"); 646 dbg_err("bad volume creation request");
647 ubi_dbg_dump_mkvol_req(req); 647 ubi_dump_mkvol_req(req);
648 return err; 648 return err;
649} 649}
650 650
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index d33a2831cc07..bb7297ebf1c1 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -207,10 +207,10 @@ void ubi_dump_seb(const struct ubi_scan_leb *seb, int type)
207} 207}
208 208
209/** 209/**
210 * ubi_dbg_dump_mkvol_req - dump a &struct ubi_mkvol_req object. 210 * ubi_dump_mkvol_req - dump a &struct ubi_mkvol_req object.
211 * @req: the object to dump 211 * @req: the object to dump
212 */ 212 */
213void ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req) 213void ubi_dump_mkvol_req(const struct ubi_mkvol_req *req)
214{ 214{
215 char nm[17]; 215 char nm[17];
216 216
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h
index b897c4ab7dc9..c98d2c8d3abe 100644
--- a/drivers/mtd/ubi/debug.h
+++ b/drivers/mtd/ubi/debug.h
@@ -64,7 +64,7 @@ void 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_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_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,
70 int offset, int len); 70 int offset, int len);
@@ -201,7 +201,7 @@ static inline void ubi_dump_sv(const struct ubi_scan_volume *sv) { return; }
201static inline void ubi_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_dump_mkvol_req(const struct ubi_mkvol_req *req) { return; }
205static inline void 205static inline void
206ubi_dbg_print_hex_dump(const char *l, const char *ps, int pt, int r, 206ubi_dbg_print_hex_dump(const char *l, const char *ps, int pt, int r,
207 int g, const void *b, size_t len, bool a) { return; } 207 int g, const void *b, size_t len, bool a) { return; }