aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/debug.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 12:15:56 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 12:15:56 -0400
commitedf6be245fd34a4438646375cecb11f5feb92646 (patch)
treeca1ddfc1900d5875d5434c6c7f39ca4966ef3baa /fs/ubifs/debug.c
parent7c46d0ae29ba880963db283706950de7aa86c0a0 (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.c')
-rw-r--r--fs/ubifs/debug.c110
1 files changed, 55 insertions, 55 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index 139025ad2ec8..914b4c879938 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -232,7 +232,7 @@ static void dump_ch(const struct ubifs_ch *ch)
232 printk(KERN_ERR "\tlen %u\n", le32_to_cpu(ch->len)); 232 printk(KERN_ERR "\tlen %u\n", le32_to_cpu(ch->len));
233} 233}
234 234
235void dbg_dump_inode(struct ubifs_info *c, const struct inode *inode) 235void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode)
236{ 236{
237 const struct ubifs_inode *ui = ubifs_inode(inode); 237 const struct ubifs_inode *ui = ubifs_inode(inode);
238 struct qstr nm = { .name = NULL }; 238 struct qstr nm = { .name = NULL };
@@ -300,7 +300,7 @@ void dbg_dump_inode(struct ubifs_info *c, const struct inode *inode)
300 kfree(pdent); 300 kfree(pdent);
301} 301}
302 302
303void dbg_dump_node(const struct ubifs_info *c, const void *node) 303void ubifs_dump_node(const struct ubifs_info *c, const void *node)
304{ 304{
305 int i, n; 305 int i, n;
306 union ubifs_key key; 306 union ubifs_key key;
@@ -603,7 +603,7 @@ void dbg_dump_node(const struct ubifs_info *c, const void *node)
603 spin_unlock(&dbg_lock); 603 spin_unlock(&dbg_lock);
604} 604}
605 605
606void dbg_dump_budget_req(const struct ubifs_budget_req *req) 606void ubifs_dump_budget_req(const struct ubifs_budget_req *req)
607{ 607{
608 spin_lock(&dbg_lock); 608 spin_lock(&dbg_lock);
609 printk(KERN_ERR "Budgeting request: new_ino %d, dirtied_ino %d\n", 609 printk(KERN_ERR "Budgeting request: new_ino %d, dirtied_ino %d\n",
@@ -620,7 +620,7 @@ void dbg_dump_budget_req(const struct ubifs_budget_req *req)
620 spin_unlock(&dbg_lock); 620 spin_unlock(&dbg_lock);
621} 621}
622 622
623void dbg_dump_lstats(const struct ubifs_lp_stats *lst) 623void ubifs_dump_lstats(const struct ubifs_lp_stats *lst)
624{ 624{
625 spin_lock(&dbg_lock); 625 spin_lock(&dbg_lock);
626 printk(KERN_ERR "(pid %d) Lprops statistics: empty_lebs %d, " 626 printk(KERN_ERR "(pid %d) Lprops statistics: empty_lebs %d, "
@@ -634,7 +634,7 @@ void dbg_dump_lstats(const struct ubifs_lp_stats *lst)
634 spin_unlock(&dbg_lock); 634 spin_unlock(&dbg_lock);
635} 635}
636 636
637void dbg_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi) 637void ubifs_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi)
638{ 638{
639 int i; 639 int i;
640 struct rb_node *rb; 640 struct rb_node *rb;
@@ -707,7 +707,7 @@ out_unlock:
707 spin_unlock(&c->space_lock); 707 spin_unlock(&c->space_lock);
708} 708}
709 709
710void dbg_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp) 710void ubifs_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp)
711{ 711{
712 int i, spc, dark = 0, dead = 0; 712 int i, spc, dark = 0, dead = 0;
713 struct rb_node *rb; 713 struct rb_node *rb;
@@ -801,7 +801,7 @@ void dbg_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp)
801 printk(KERN_CONT ")\n"); 801 printk(KERN_CONT ")\n");
802} 802}
803 803
804void dbg_dump_lprops(struct ubifs_info *c) 804void ubifs_dump_lprops(struct ubifs_info *c)
805{ 805{
806 int lnum, err; 806 int lnum, err;
807 struct ubifs_lprops lp; 807 struct ubifs_lprops lp;
@@ -810,20 +810,20 @@ void dbg_dump_lprops(struct ubifs_info *c)
810 printk(KERN_ERR "(pid %d) start dumping LEB properties\n", 810 printk(KERN_ERR "(pid %d) start dumping LEB properties\n",
811 current->pid); 811 current->pid);
812 ubifs_get_lp_stats(c, &lst); 812 ubifs_get_lp_stats(c, &lst);
813 dbg_dump_lstats(&lst); 813 ubifs_dump_lstats(&lst);
814 814
815 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { 815 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) {
816 err = ubifs_read_one_lp(c, lnum, &lp); 816 err = ubifs_read_one_lp(c, lnum, &lp);
817 if (err) 817 if (err)
818 ubifs_err("cannot read lprops for LEB %d", lnum); 818 ubifs_err("cannot read lprops for LEB %d", lnum);
819 819
820 dbg_dump_lprop(c, &lp); 820 ubifs_dump_lprop(c, &lp);
821 } 821 }
822 printk(KERN_ERR "(pid %d) finish dumping LEB properties\n", 822 printk(KERN_ERR "(pid %d) finish dumping LEB properties\n",
823 current->pid); 823 current->pid);
824} 824}
825 825
826void dbg_dump_lpt_info(struct ubifs_info *c) 826void ubifs_dump_lpt_info(struct ubifs_info *c)
827{ 827{
828 int i; 828 int i;
829 829
@@ -862,8 +862,8 @@ void dbg_dump_lpt_info(struct ubifs_info *c)
862 spin_unlock(&dbg_lock); 862 spin_unlock(&dbg_lock);
863} 863}
864 864
865void dbg_dump_sleb(const struct ubifs_info *c, 865void ubifs_dump_sleb(const struct ubifs_info *c,
866 const struct ubifs_scan_leb *sleb, int offs) 866 const struct ubifs_scan_leb *sleb, int offs)
867{ 867{
868 struct ubifs_scan_node *snod; 868 struct ubifs_scan_node *snod;
869 869
@@ -874,11 +874,11 @@ void dbg_dump_sleb(const struct ubifs_info *c,
874 cond_resched(); 874 cond_resched();
875 printk(KERN_ERR "Dumping node at LEB %d:%d len %d\n", sleb->lnum, 875 printk(KERN_ERR "Dumping node at LEB %d:%d len %d\n", sleb->lnum,
876 snod->offs, snod->len); 876 snod->offs, snod->len);
877 dbg_dump_node(c, snod->node); 877 ubifs_dump_node(c, snod->node);
878 } 878 }
879} 879}
880 880
881void dbg_dump_leb(const struct ubifs_info *c, int lnum) 881void ubifs_dump_leb(const struct ubifs_info *c, int lnum)
882{ 882{
883 struct ubifs_scan_leb *sleb; 883 struct ubifs_scan_leb *sleb;
884 struct ubifs_scan_node *snod; 884 struct ubifs_scan_node *snod;
@@ -909,7 +909,7 @@ void dbg_dump_leb(const struct ubifs_info *c, int lnum)
909 cond_resched(); 909 cond_resched();
910 printk(KERN_ERR "Dumping node at LEB %d:%d len %d\n", lnum, 910 printk(KERN_ERR "Dumping node at LEB %d:%d len %d\n", lnum,
911 snod->offs, snod->len); 911 snod->offs, snod->len);
912 dbg_dump_node(c, snod->node); 912 ubifs_dump_node(c, snod->node);
913 } 913 }
914 914
915 printk(KERN_ERR "(pid %d) finish dumping LEB %d\n", 915 printk(KERN_ERR "(pid %d) finish dumping LEB %d\n",
@@ -921,8 +921,8 @@ out:
921 return; 921 return;
922} 922}
923 923
924void dbg_dump_znode(const struct ubifs_info *c, 924void ubifs_dump_znode(const struct ubifs_info *c,
925 const struct ubifs_znode *znode) 925 const struct ubifs_znode *znode)
926{ 926{
927 int n; 927 int n;
928 const struct ubifs_zbranch *zbr; 928 const struct ubifs_zbranch *zbr;
@@ -965,7 +965,7 @@ void dbg_dump_znode(const struct ubifs_info *c,
965 spin_unlock(&dbg_lock); 965 spin_unlock(&dbg_lock);
966} 966}
967 967
968void dbg_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat) 968void ubifs_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat)
969{ 969{
970 int i; 970 int i;
971 971
@@ -981,8 +981,8 @@ void dbg_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat)
981 printk(KERN_ERR "(pid %d) finish dumping heap\n", current->pid); 981 printk(KERN_ERR "(pid %d) finish dumping heap\n", current->pid);
982} 982}
983 983
984void dbg_dump_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode, 984void ubifs_dump_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
985 struct ubifs_nnode *parent, int iip) 985 struct ubifs_nnode *parent, int iip)
986{ 986{
987 int i; 987 int i;
988 988
@@ -999,7 +999,7 @@ void dbg_dump_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
999 } 999 }
1000} 1000}
1001 1001
1002void dbg_dump_tnc(struct ubifs_info *c) 1002void ubifs_dump_tnc(struct ubifs_info *c)
1003{ 1003{
1004 struct ubifs_znode *znode; 1004 struct ubifs_znode *znode;
1005 int level; 1005 int level;
@@ -1014,7 +1014,7 @@ void dbg_dump_tnc(struct ubifs_info *c)
1014 level = znode->level; 1014 level = znode->level;
1015 printk(KERN_ERR "== Level %d ==\n", level); 1015 printk(KERN_ERR "== Level %d ==\n", level);
1016 } 1016 }
1017 dbg_dump_znode(c, znode); 1017 ubifs_dump_znode(c, znode);
1018 znode = ubifs_tnc_levelorder_next(c->zroot.znode, znode); 1018 znode = ubifs_tnc_levelorder_next(c->zroot.znode, znode);
1019 } 1019 }
1020 printk(KERN_ERR "(pid %d) finish dumping TNC tree\n", current->pid); 1020 printk(KERN_ERR "(pid %d) finish dumping TNC tree\n", current->pid);
@@ -1023,18 +1023,18 @@ void dbg_dump_tnc(struct ubifs_info *c)
1023static int dump_znode(struct ubifs_info *c, struct ubifs_znode *znode, 1023static int dump_znode(struct ubifs_info *c, struct ubifs_znode *znode,
1024 void *priv) 1024 void *priv)
1025{ 1025{
1026 dbg_dump_znode(c, znode); 1026 ubifs_dump_znode(c, znode);
1027 return 0; 1027 return 0;
1028} 1028}
1029 1029
1030/** 1030/**
1031 * dbg_dump_index - dump the on-flash index. 1031 * ubifs_dump_index - dump the on-flash index.
1032 * @c: UBIFS file-system description object 1032 * @c: UBIFS file-system description object
1033 * 1033 *
1034 * This function dumps whole UBIFS indexing B-tree, unlike 'dbg_dump_tnc()' 1034 * This function dumps whole UBIFS indexing B-tree, unlike 'ubifs_dump_tnc()'
1035 * which dumps only in-memory znodes and does not read znodes which from flash. 1035 * which dumps only in-memory znodes and does not read znodes which from flash.
1036 */ 1036 */
1037void dbg_dump_index(struct ubifs_info *c) 1037void ubifs_dump_index(struct ubifs_info *c)
1038{ 1038{
1039 dbg_walk_index(c, NULL, dump_znode, NULL); 1039 dbg_walk_index(c, NULL, dump_znode, NULL);
1040} 1040}
@@ -1120,15 +1120,15 @@ int dbg_check_space_info(struct ubifs_info *c)
1120 1120
1121out: 1121out:
1122 ubifs_msg("saved lprops statistics dump"); 1122 ubifs_msg("saved lprops statistics dump");
1123 dbg_dump_lstats(&d->saved_lst); 1123 ubifs_dump_lstats(&d->saved_lst);
1124 ubifs_msg("saved budgeting info dump"); 1124 ubifs_msg("saved budgeting info dump");
1125 dbg_dump_budg(c, &d->saved_bi); 1125 ubifs_dump_budg(c, &d->saved_bi);
1126 ubifs_msg("saved idx_gc_cnt %d", d->saved_idx_gc_cnt); 1126 ubifs_msg("saved idx_gc_cnt %d", d->saved_idx_gc_cnt);
1127 ubifs_msg("current lprops statistics dump"); 1127 ubifs_msg("current lprops statistics dump");
1128 ubifs_get_lp_stats(c, &lst); 1128 ubifs_get_lp_stats(c, &lst);
1129 dbg_dump_lstats(&lst); 1129 ubifs_dump_lstats(&lst);
1130 ubifs_msg("current budgeting info dump"); 1130 ubifs_msg("current budgeting info dump");
1131 dbg_dump_budg(c, &c->bi); 1131 ubifs_dump_budg(c, &c->bi);
1132 dump_stack(); 1132 dump_stack();
1133 return -EINVAL; 1133 return -EINVAL;
1134} 1134}
@@ -1223,14 +1223,14 @@ int dbg_check_dir(struct ubifs_info *c, const struct inode *dir)
1223 "but calculated size is %llu", dir->i_ino, 1223 "but calculated size is %llu", dir->i_ino,
1224 (unsigned long long)i_size_read(dir), 1224 (unsigned long long)i_size_read(dir),
1225 (unsigned long long)size); 1225 (unsigned long long)size);
1226 dbg_dump_inode(c, dir); 1226 ubifs_dump_inode(c, dir);
1227 dump_stack(); 1227 dump_stack();
1228 return -EINVAL; 1228 return -EINVAL;
1229 } 1229 }
1230 if (dir->i_nlink != nlink) { 1230 if (dir->i_nlink != nlink) {
1231 ubifs_err("directory inode %lu has nlink %u, but calculated " 1231 ubifs_err("directory inode %lu has nlink %u, but calculated "
1232 "nlink is %u", dir->i_ino, dir->i_nlink, nlink); 1232 "nlink is %u", dir->i_ino, dir->i_nlink, nlink);
1233 dbg_dump_inode(c, dir); 1233 ubifs_dump_inode(c, dir);
1234 dump_stack(); 1234 dump_stack();
1235 return -EINVAL; 1235 return -EINVAL;
1236 } 1236 }
@@ -1293,7 +1293,7 @@ static int dbg_check_key_order(struct ubifs_info *c, struct ubifs_zbranch *zbr1,
1293 dbg_err("but it should have key %s according to tnc", 1293 dbg_err("but it should have key %s according to tnc",
1294 dbg_snprintf_key(c, &zbr1->key, key_buf, 1294 dbg_snprintf_key(c, &zbr1->key, key_buf,
1295 DBG_KEY_BUF_LEN)); 1295 DBG_KEY_BUF_LEN));
1296 dbg_dump_node(c, dent1); 1296 ubifs_dump_node(c, dent1);
1297 goto out_free; 1297 goto out_free;
1298 } 1298 }
1299 1299
@@ -1305,7 +1305,7 @@ static int dbg_check_key_order(struct ubifs_info *c, struct ubifs_zbranch *zbr1,
1305 dbg_err("but it should have key %s according to tnc", 1305 dbg_err("but it should have key %s according to tnc",
1306 dbg_snprintf_key(c, &zbr2->key, key_buf, 1306 dbg_snprintf_key(c, &zbr2->key, key_buf,
1307 DBG_KEY_BUF_LEN)); 1307 DBG_KEY_BUF_LEN));
1308 dbg_dump_node(c, dent2); 1308 ubifs_dump_node(c, dent2);
1309 goto out_free; 1309 goto out_free;
1310 } 1310 }
1311 1311
@@ -1324,9 +1324,9 @@ static int dbg_check_key_order(struct ubifs_info *c, struct ubifs_zbranch *zbr1,
1324 dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN)); 1324 dbg_snprintf_key(c, &key, key_buf, DBG_KEY_BUF_LEN));
1325 1325
1326 ubifs_msg("first node at %d:%d\n", zbr1->lnum, zbr1->offs); 1326 ubifs_msg("first node at %d:%d\n", zbr1->lnum, zbr1->offs);
1327 dbg_dump_node(c, dent1); 1327 ubifs_dump_node(c, dent1);
1328 ubifs_msg("second node at %d:%d\n", zbr2->lnum, zbr2->offs); 1328 ubifs_msg("second node at %d:%d\n", zbr2->lnum, zbr2->offs);
1329 dbg_dump_node(c, dent2); 1329 ubifs_dump_node(c, dent2);
1330 1330
1331out_free: 1331out_free:
1332 kfree(dent2); 1332 kfree(dent2);
@@ -1529,10 +1529,10 @@ static int dbg_check_znode(struct ubifs_info *c, struct ubifs_zbranch *zbr)
1529out: 1529out:
1530 ubifs_err("failed, error %d", err); 1530 ubifs_err("failed, error %d", err);
1531 ubifs_msg("dump of the znode"); 1531 ubifs_msg("dump of the znode");
1532 dbg_dump_znode(c, znode); 1532 ubifs_dump_znode(c, znode);
1533 if (zp) { 1533 if (zp) {
1534 ubifs_msg("dump of the parent znode"); 1534 ubifs_msg("dump of the parent znode");
1535 dbg_dump_znode(c, zp); 1535 ubifs_dump_znode(c, zp);
1536 } 1536 }
1537 dump_stack(); 1537 dump_stack();
1538 return -EINVAL; 1538 return -EINVAL;
@@ -1599,9 +1599,9 @@ int dbg_check_tnc(struct ubifs_info *c, int extra)
1599 return err; 1599 return err;
1600 if (err) { 1600 if (err) {
1601 ubifs_msg("first znode"); 1601 ubifs_msg("first znode");
1602 dbg_dump_znode(c, prev); 1602 ubifs_dump_znode(c, prev);
1603 ubifs_msg("second znode"); 1603 ubifs_msg("second znode");
1604 dbg_dump_znode(c, znode); 1604 ubifs_dump_znode(c, znode);
1605 return -EINVAL; 1605 return -EINVAL;
1606 } 1606 }
1607 } 1607 }
@@ -1690,7 +1690,7 @@ int dbg_walk_index(struct ubifs_info *c, dbg_leaf_callback leaf_cb,
1690 if (err) { 1690 if (err) {
1691 ubifs_err("znode checking function returned " 1691 ubifs_err("znode checking function returned "
1692 "error %d", err); 1692 "error %d", err);
1693 dbg_dump_znode(c, znode); 1693 ubifs_dump_znode(c, znode);
1694 goto out_dump; 1694 goto out_dump;
1695 } 1695 }
1696 } 1696 }
@@ -1758,7 +1758,7 @@ out_dump:
1758 else 1758 else
1759 zbr = &c->zroot; 1759 zbr = &c->zroot;
1760 ubifs_msg("dump of znode at LEB %d:%d", zbr->lnum, zbr->offs); 1760 ubifs_msg("dump of znode at LEB %d:%d", zbr->lnum, zbr->offs);
1761 dbg_dump_znode(c, znode); 1761 ubifs_dump_znode(c, znode);
1762out_unlock: 1762out_unlock:
1763 mutex_unlock(&c->tnc_mutex); 1763 mutex_unlock(&c->tnc_mutex);
1764 return err; 1764 return err;
@@ -2194,7 +2194,7 @@ out:
2194 2194
2195out_dump: 2195out_dump:
2196 ubifs_msg("dump of node at LEB %d:%d", zbr->lnum, zbr->offs); 2196 ubifs_msg("dump of node at LEB %d:%d", zbr->lnum, zbr->offs);
2197 dbg_dump_node(c, node); 2197 ubifs_dump_node(c, node);
2198out_free: 2198out_free:
2199 kfree(node); 2199 kfree(node);
2200 return err; 2200 return err;
@@ -2352,7 +2352,7 @@ out_dump:
2352 2352
2353 ubifs_msg("dump of the inode %lu sitting in LEB %d:%d", 2353 ubifs_msg("dump of the inode %lu sitting in LEB %d:%d",
2354 (unsigned long)fscki->inum, zbr->lnum, zbr->offs); 2354 (unsigned long)fscki->inum, zbr->lnum, zbr->offs);
2355 dbg_dump_node(c, ino); 2355 ubifs_dump_node(c, ino);
2356 kfree(ino); 2356 kfree(ino);
2357 return -EINVAL; 2357 return -EINVAL;
2358} 2358}
@@ -2423,12 +2423,12 @@ int dbg_check_data_nodes_order(struct ubifs_info *c, struct list_head *head)
2423 2423
2424 if (sa->type != UBIFS_DATA_NODE) { 2424 if (sa->type != UBIFS_DATA_NODE) {
2425 ubifs_err("bad node type %d", sa->type); 2425 ubifs_err("bad node type %d", sa->type);
2426 dbg_dump_node(c, sa->node); 2426 ubifs_dump_node(c, sa->node);
2427 return -EINVAL; 2427 return -EINVAL;
2428 } 2428 }
2429 if (sb->type != UBIFS_DATA_NODE) { 2429 if (sb->type != UBIFS_DATA_NODE) {
2430 ubifs_err("bad node type %d", sb->type); 2430 ubifs_err("bad node type %d", sb->type);
2431 dbg_dump_node(c, sb->node); 2431 ubifs_dump_node(c, sb->node);
2432 return -EINVAL; 2432 return -EINVAL;
2433 } 2433 }
2434 2434
@@ -2459,8 +2459,8 @@ int dbg_check_data_nodes_order(struct ubifs_info *c, struct list_head *head)
2459 return 0; 2459 return 0;
2460 2460
2461error_dump: 2461error_dump:
2462 dbg_dump_node(c, sa->node); 2462 ubifs_dump_node(c, sa->node);
2463 dbg_dump_node(c, sb->node); 2463 ubifs_dump_node(c, sb->node);
2464 return -EINVAL; 2464 return -EINVAL;
2465} 2465}
2466 2466
@@ -2491,13 +2491,13 @@ int dbg_check_nondata_nodes_order(struct ubifs_info *c, struct list_head *head)
2491 if (sa->type != UBIFS_INO_NODE && sa->type != UBIFS_DENT_NODE && 2491 if (sa->type != UBIFS_INO_NODE && sa->type != UBIFS_DENT_NODE &&
2492 sa->type != UBIFS_XENT_NODE) { 2492 sa->type != UBIFS_XENT_NODE) {
2493 ubifs_err("bad node type %d", sa->type); 2493 ubifs_err("bad node type %d", sa->type);
2494 dbg_dump_node(c, sa->node); 2494 ubifs_dump_node(c, sa->node);
2495 return -EINVAL; 2495 return -EINVAL;
2496 } 2496 }
2497 if (sa->type != UBIFS_INO_NODE && sa->type != UBIFS_DENT_NODE && 2497 if (sa->type != UBIFS_INO_NODE && sa->type != UBIFS_DENT_NODE &&
2498 sa->type != UBIFS_XENT_NODE) { 2498 sa->type != UBIFS_XENT_NODE) {
2499 ubifs_err("bad node type %d", sb->type); 2499 ubifs_err("bad node type %d", sb->type);
2500 dbg_dump_node(c, sb->node); 2500 ubifs_dump_node(c, sb->node);
2501 return -EINVAL; 2501 return -EINVAL;
2502 } 2502 }
2503 2503
@@ -2547,9 +2547,9 @@ int dbg_check_nondata_nodes_order(struct ubifs_info *c, struct list_head *head)
2547 2547
2548error_dump: 2548error_dump:
2549 ubifs_msg("dumping first node"); 2549 ubifs_msg("dumping first node");
2550 dbg_dump_node(c, sa->node); 2550 ubifs_dump_node(c, sa->node);
2551 ubifs_msg("dumping second node"); 2551 ubifs_msg("dumping second node");
2552 dbg_dump_node(c, sb->node); 2552 ubifs_dump_node(c, sb->node);
2553 return -EINVAL; 2553 return -EINVAL;
2554 return 0; 2554 return 0;
2555} 2555}
@@ -2857,16 +2857,16 @@ static ssize_t dfs_file_write(struct file *file, const char __user *u,
2857 * 'ubifs-debug' file-system instead. 2857 * 'ubifs-debug' file-system instead.
2858 */ 2858 */
2859 if (file->f_path.dentry == d->dfs_dump_lprops) { 2859 if (file->f_path.dentry == d->dfs_dump_lprops) {
2860 dbg_dump_lprops(c); 2860 ubifs_dump_lprops(c);
2861 return count; 2861 return count;
2862 } 2862 }
2863 if (file->f_path.dentry == d->dfs_dump_budg) { 2863 if (file->f_path.dentry == d->dfs_dump_budg) {
2864 dbg_dump_budg(c, &c->bi); 2864 ubifs_dump_budg(c, &c->bi);
2865 return count; 2865 return count;
2866 } 2866 }
2867 if (file->f_path.dentry == d->dfs_dump_tnc) { 2867 if (file->f_path.dentry == d->dfs_dump_tnc) {
2868 mutex_lock(&c->tnc_mutex); 2868 mutex_lock(&c->tnc_mutex);
2869 dbg_dump_tnc(c); 2869 ubifs_dump_tnc(c);
2870 mutex_unlock(&c->tnc_mutex); 2870 mutex_unlock(&c->tnc_mutex);
2871 return count; 2871 return count;
2872 } 2872 }