@@ -320,9 +320,8 @@ static int layout_cnodes(struct ubifs_info *c)
320320 return 0 ;
321321
322322no_space :
323- ubifs_err ("LPT out of space" );
324- dbg_err ("LPT out of space at LEB %d:%d needing %d, done_ltab %d, "
325- "done_lsave %d" , lnum , offs , len , done_ltab , done_lsave );
323+ ubifs_err ("LPT out of space at LEB %d:%d needing %d, done_ltab %d, "
324+ "done_lsave %d" , lnum , offs , len , done_ltab , done_lsave );
326325 ubifs_dump_lpt_info (c );
327326 ubifs_dump_lpt_lebs (c );
328327 dump_stack ();
@@ -548,9 +547,8 @@ static int write_cnodes(struct ubifs_info *c)
548547 return 0 ;
549548
550549no_space :
551- ubifs_err ("LPT out of space mismatch" );
552- dbg_err ("LPT out of space mismatch at LEB %d:%d needing %d, done_ltab "
553- "%d, done_lsave %d" , lnum , offs , len , done_ltab , done_lsave );
550+ ubifs_err ("LPT out of space mismatch at LEB %d:%d needing %d, done_ltab "
551+ "%d, done_lsave %d" , lnum , offs , len , done_ltab , done_lsave );
554552 ubifs_dump_lpt_info (c );
555553 ubifs_dump_lpt_lebs (c );
556554 dump_stack ();
@@ -1733,7 +1731,7 @@ int dbg_check_ltab(struct ubifs_info *c)
17331731 for (lnum = c -> lpt_first ; lnum <= c -> lpt_last ; lnum ++ ) {
17341732 err = dbg_check_ltab_lnum (c , lnum );
17351733 if (err ) {
1736- dbg_err ("failed at LEB %d" , lnum );
1734+ ubifs_err ("failed at LEB %d" , lnum );
17371735 return err ;
17381736 }
17391737 }
@@ -1765,8 +1763,8 @@ int dbg_chk_lpt_free_spc(struct ubifs_info *c)
17651763 free += c -> leb_size ;
17661764 }
17671765 if (free < c -> lpt_sz ) {
1768- dbg_err ("LPT space error: free %lld lpt_sz %lld" ,
1769- free , c -> lpt_sz );
1766+ ubifs_err ("LPT space error: free %lld lpt_sz %lld" ,
1767+ free , c -> lpt_sz );
17701768 ubifs_dump_lpt_info (c );
17711769 ubifs_dump_lpt_lebs (c );
17721770 dump_stack ();
@@ -1805,13 +1803,13 @@ int dbg_chk_lpt_sz(struct ubifs_info *c, int action, int len)
18051803 d -> chk_lpt_lebs = 0 ;
18061804 d -> chk_lpt_wastage = 0 ;
18071805 if (c -> dirty_pn_cnt > c -> pnode_cnt ) {
1808- dbg_err ("dirty pnodes %d exceed max %d" ,
1809- c -> dirty_pn_cnt , c -> pnode_cnt );
1806+ ubifs_err ("dirty pnodes %d exceed max %d" ,
1807+ c -> dirty_pn_cnt , c -> pnode_cnt );
18101808 err = - EINVAL ;
18111809 }
18121810 if (c -> dirty_nn_cnt > c -> nnode_cnt ) {
1813- dbg_err ("dirty nnodes %d exceed max %d" ,
1814- c -> dirty_nn_cnt , c -> nnode_cnt );
1811+ ubifs_err ("dirty nnodes %d exceed max %d" ,
1812+ c -> dirty_nn_cnt , c -> nnode_cnt );
18151813 err = - EINVAL ;
18161814 }
18171815 return err ;
@@ -1828,23 +1826,23 @@ int dbg_chk_lpt_sz(struct ubifs_info *c, int action, int len)
18281826 chk_lpt_sz *= d -> chk_lpt_lebs ;
18291827 chk_lpt_sz += len - c -> nhead_offs ;
18301828 if (d -> chk_lpt_sz != chk_lpt_sz ) {
1831- dbg_err ("LPT wrote %lld but space used was %lld" ,
1832- d -> chk_lpt_sz , chk_lpt_sz );
1829+ ubifs_err ("LPT wrote %lld but space used was %lld" ,
1830+ d -> chk_lpt_sz , chk_lpt_sz );
18331831 err = - EINVAL ;
18341832 }
18351833 if (d -> chk_lpt_sz > c -> lpt_sz ) {
1836- dbg_err ("LPT wrote %lld but lpt_sz is %lld" ,
1837- d -> chk_lpt_sz , c -> lpt_sz );
1834+ ubifs_err ("LPT wrote %lld but lpt_sz is %lld" ,
1835+ d -> chk_lpt_sz , c -> lpt_sz );
18381836 err = - EINVAL ;
18391837 }
18401838 if (d -> chk_lpt_sz2 && d -> chk_lpt_sz != d -> chk_lpt_sz2 ) {
1841- dbg_err ("LPT layout size %lld but wrote %lld" ,
1842- d -> chk_lpt_sz , d -> chk_lpt_sz2 );
1839+ ubifs_err ("LPT layout size %lld but wrote %lld" ,
1840+ d -> chk_lpt_sz , d -> chk_lpt_sz2 );
18431841 err = - EINVAL ;
18441842 }
18451843 if (d -> chk_lpt_sz2 && d -> new_nhead_offs != len ) {
1846- dbg_err ("LPT new nhead offs: expected %d was %d" ,
1847- d -> new_nhead_offs , len );
1844+ ubifs_err ("LPT new nhead offs: expected %d was %d" ,
1845+ d -> new_nhead_offs , len );
18481846 err = - EINVAL ;
18491847 }
18501848 lpt_sz = (long long )c -> pnode_cnt * c -> pnode_sz ;
@@ -1853,8 +1851,8 @@ int dbg_chk_lpt_sz(struct ubifs_info *c, int action, int len)
18531851 if (c -> big_lpt )
18541852 lpt_sz += c -> lsave_sz ;
18551853 if (d -> chk_lpt_sz - d -> chk_lpt_wastage > lpt_sz ) {
1856- dbg_err ("LPT chk_lpt_sz %lld + waste %lld exceeds %lld" ,
1857- d -> chk_lpt_sz , d -> chk_lpt_wastage , lpt_sz );
1854+ ubifs_err ("LPT chk_lpt_sz %lld + waste %lld exceeds %lld" ,
1855+ d -> chk_lpt_sz , d -> chk_lpt_wastage , lpt_sz );
18581856 err = - EINVAL ;
18591857 }
18601858 if (err ) {
0 commit comments