diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-16 12:15:56 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-16 12:15:56 -0400 |
commit | edf6be245fd34a4438646375cecb11f5feb92646 (patch) | |
tree | ca1ddfc1900d5875d5434c6c7f39ca4966ef3baa /fs/ubifs/debug.h | |
parent | 7c46d0ae29ba880963db283706950de7aa86c0a0 (diff) |
UBIFS: rename dumping functions
This commit re-names all functions which dump something from "dbg_dump_*()" to
"ubifs_dump_*()". This is done for consistency with UBI and because this way it
will be more logical once we remove the debugging sompilation option.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/debug.h')
-rw-r--r-- | fs/ubifs/debug.h | 99 |
1 files changed, 48 insertions, 51 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h index 6e5d345a0f7e..f89836934871 100644 --- a/fs/ubifs/debug.h +++ b/fs/ubifs/debug.h | |||
@@ -255,27 +255,27 @@ const char *dbg_get_key_dump(const struct ubifs_info *c, | |||
255 | const union ubifs_key *key); | 255 | const union ubifs_key *key); |
256 | const char *dbg_snprintf_key(const struct ubifs_info *c, | 256 | const char *dbg_snprintf_key(const struct ubifs_info *c, |
257 | const union ubifs_key *key, char *buffer, int len); | 257 | const union ubifs_key *key, char *buffer, int len); |
258 | void dbg_dump_inode(struct ubifs_info *c, const struct inode *inode); | 258 | void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode); |
259 | void dbg_dump_node(const struct ubifs_info *c, const void *node); | 259 | void ubifs_dump_node(const struct ubifs_info *c, const void *node); |
260 | void dbg_dump_lpt_node(const struct ubifs_info *c, void *node, int lnum, | 260 | void ubifs_dump_budget_req(const struct ubifs_budget_req *req); |
261 | int offs); | 261 | void ubifs_dump_lstats(const struct ubifs_lp_stats *lst); |
262 | void dbg_dump_budget_req(const struct ubifs_budget_req *req); | 262 | void ubifs_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi); |
263 | void dbg_dump_lstats(const struct ubifs_lp_stats *lst); | 263 | void ubifs_dump_lprop(const struct ubifs_info *c, |
264 | void dbg_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi); | 264 | const struct ubifs_lprops *lp); |
265 | void dbg_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp); | 265 | void ubifs_dump_lprops(struct ubifs_info *c); |
266 | void dbg_dump_lprops(struct ubifs_info *c); | 266 | void ubifs_dump_lpt_info(struct ubifs_info *c); |
267 | void dbg_dump_lpt_info(struct ubifs_info *c); | 267 | void ubifs_dump_leb(const struct ubifs_info *c, int lnum); |
268 | void dbg_dump_leb(const struct ubifs_info *c, int lnum); | 268 | void ubifs_dump_sleb(const struct ubifs_info *c, |
269 | void dbg_dump_sleb(const struct ubifs_info *c, | 269 | const struct ubifs_scan_leb *sleb, int offs); |
270 | const struct ubifs_scan_leb *sleb, int offs); | 270 | void ubifs_dump_znode(const struct ubifs_info *c, |
271 | void dbg_dump_znode(const struct ubifs_info *c, | 271 | const struct ubifs_znode *znode); |
272 | const struct ubifs_znode *znode); | 272 | void ubifs_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, |
273 | void dbg_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat); | 273 | int cat); |
274 | void dbg_dump_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode, | 274 | void ubifs_dump_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode, |
275 | struct ubifs_nnode *parent, int iip); | 275 | struct ubifs_nnode *parent, int iip); |
276 | void dbg_dump_tnc(struct ubifs_info *c); | 276 | void ubifs_dump_tnc(struct ubifs_info *c); |
277 | void dbg_dump_index(struct ubifs_info *c); | 277 | void ubifs_dump_index(struct ubifs_info *c); |
278 | void dbg_dump_lpt_lebs(const struct ubifs_info *c); | 278 | void ubifs_dump_lpt_lebs(const struct ubifs_info *c); |
279 | 279 | ||
280 | int dbg_walk_index(struct ubifs_info *c, dbg_leaf_callback leaf_cb, | 280 | int dbg_walk_index(struct ubifs_info *c, dbg_leaf_callback leaf_cb, |
281 | dbg_znode_callback znode_cb, void *priv); | 281 | dbg_znode_callback znode_cb, void *priv); |
@@ -371,42 +371,39 @@ static inline const char * | |||
371 | dbg_snprintf_key(const struct ubifs_info *c, | 371 | dbg_snprintf_key(const struct ubifs_info *c, |
372 | const union ubifs_key *key, char *buffer, | 372 | const union ubifs_key *key, char *buffer, |
373 | int len) { return ""; } | 373 | int len) { return ""; } |
374 | static inline void dbg_dump_inode(struct ubifs_info *c, | 374 | static inline void ubifs_dump_inode(struct ubifs_info *c, |
375 | const struct inode *inode) { return; } | 375 | const struct inode *inode) { return; } |
376 | static inline void dbg_dump_node(const struct ubifs_info *c, | 376 | static inline void ubifs_dump_node(const struct ubifs_info *c, |
377 | const void *node) { return; } | 377 | const void *node) { return; } |
378 | static inline void dbg_dump_lpt_node(const struct ubifs_info *c, | ||
379 | void *node, int lnum, | ||
380 | int offs) { return; } | ||
381 | static inline void | 378 | static inline void |
382 | dbg_dump_budget_req(const struct ubifs_budget_req *req) { return; } | 379 | ubifs_dump_budget_req(const struct ubifs_budget_req *req) { return; } |
383 | static inline void | 380 | static inline void |
384 | dbg_dump_lstats(const struct ubifs_lp_stats *lst) { return; } | 381 | ubifs_dump_lstats(const struct ubifs_lp_stats *lst) { return; } |
385 | static inline void | 382 | static inline void |
386 | dbg_dump_budg(struct ubifs_info *c, | 383 | ubifs_dump_budg(struct ubifs_info *c, |
387 | const struct ubifs_budg_info *bi) { return; } | 384 | const struct ubifs_budg_info *bi) { return; } |
388 | static inline void dbg_dump_lprop(const struct ubifs_info *c, | 385 | static inline void ubifs_dump_lprop(const struct ubifs_info *c, |
389 | const struct ubifs_lprops *lp) { return; } | 386 | const struct ubifs_lprops *lp){ return; } |
390 | static inline void dbg_dump_lprops(struct ubifs_info *c) { return; } | 387 | static inline void ubifs_dump_lprops(struct ubifs_info *c) { return; } |
391 | static inline void dbg_dump_lpt_info(struct ubifs_info *c) { return; } | 388 | static inline void ubifs_dump_lpt_info(struct ubifs_info *c) { return; } |
392 | static inline void dbg_dump_leb(const struct ubifs_info *c, | 389 | static inline void ubifs_dump_leb(const struct ubifs_info *c, |
393 | int lnum) { return; } | 390 | int lnum) { return; } |
394 | static inline void | 391 | static inline void |
395 | dbg_dump_sleb(const struct ubifs_info *c, | 392 | ubifs_dump_sleb(const struct ubifs_info *c, |
396 | const struct ubifs_scan_leb *sleb, int offs) { return; } | 393 | const struct ubifs_scan_leb *sleb, int offs) { return; } |
397 | static inline void | 394 | static inline void |
398 | dbg_dump_znode(const struct ubifs_info *c, | 395 | ubifs_dump_znode(const struct ubifs_info *c, |
399 | const struct ubifs_znode *znode) { return; } | 396 | const struct ubifs_znode *znode) { return; } |
400 | static inline void dbg_dump_heap(struct ubifs_info *c, | 397 | static inline void ubifs_dump_heap(struct ubifs_info *c, |
401 | struct ubifs_lpt_heap *heap, | 398 | struct ubifs_lpt_heap *heap, |
402 | int cat) { return; } | 399 | int cat) { return; } |
403 | static inline void dbg_dump_pnode(struct ubifs_info *c, | 400 | static inline void ubifs_dump_pnode(struct ubifs_info *c, |
404 | struct ubifs_pnode *pnode, | 401 | struct ubifs_pnode *pnode, |
405 | struct ubifs_nnode *parent, | 402 | struct ubifs_nnode *parent, |
406 | int iip) { return; } | 403 | int iip) { return; } |
407 | static inline void dbg_dump_tnc(struct ubifs_info *c) { return; } | 404 | static inline void ubifs_dump_tnc(struct ubifs_info *c) { return; } |
408 | static inline void dbg_dump_index(struct ubifs_info *c) { return; } | 405 | static inline void ubifs_dump_index(struct ubifs_info *c) { return; } |
409 | static inline void dbg_dump_lpt_lebs(const struct ubifs_info *c) { return; } | 406 | static inline void ubifs_dump_lpt_lebs(const struct ubifs_info *c){ return; } |
410 | 407 | ||
411 | static inline int dbg_walk_index(struct ubifs_info *c, | 408 | static inline int dbg_walk_index(struct ubifs_info *c, |
412 | dbg_leaf_callback leaf_cb, | 409 | dbg_leaf_callback leaf_cb, |