debug.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. /*
  2. * This file is part of UBIFS.
  3. *
  4. * Copyright (C) 2006-2008 Nokia Corporation.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 as published by
  8. * the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along with
  16. * this program; if not, write to the Free Software Foundation, Inc., 51
  17. * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. *
  19. * Authors: Artem Bityutskiy (Битюцкий Артём)
  20. * Adrian Hunter
  21. */
  22. #ifndef __UBIFS_DEBUG_H__
  23. #define __UBIFS_DEBUG_H__
  24. /* Checking helper functions */
  25. typedef int (*dbg_leaf_callback)(struct ubifs_info *c,
  26. struct ubifs_zbranch *zbr, void *priv);
  27. typedef int (*dbg_znode_callback)(struct ubifs_info *c,
  28. struct ubifs_znode *znode, void *priv);
  29. #ifdef CONFIG_UBIFS_FS_DEBUG
  30. #include <linux/random.h>
  31. /**
  32. * ubifs_debug_info - per-FS debugging information.
  33. * @old_zroot: old index root - used by 'dbg_check_old_index()'
  34. * @old_zroot_level: old index root level - used by 'dbg_check_old_index()'
  35. * @old_zroot_sqnum: old index root sqnum - used by 'dbg_check_old_index()'
  36. * @failure_mode: failure mode for recovery testing
  37. * @fail_delay: 0=>don't delay, 1=>delay a time, 2=>delay a number of calls
  38. * @fail_timeout: time in jiffies when delay of failure mode expires
  39. * @fail_cnt: current number of calls to failure mode I/O functions
  40. * @fail_cnt_max: number of calls by which to delay failure mode
  41. * @chk_lpt_sz: used by LPT tree size checker
  42. * @chk_lpt_sz2: used by LPT tree size checker
  43. * @chk_lpt_wastage: used by LPT tree size checker
  44. * @chk_lpt_lebs: used by LPT tree size checker
  45. * @new_nhead_offs: used by LPT tree size checker
  46. * @new_ihead_lnum: used by debugging to check @c->ihead_lnum
  47. * @new_ihead_offs: used by debugging to check @c->ihead_offs
  48. *
  49. * @saved_lst: saved lprops statistics (used by 'dbg_save_space_info()')
  50. * @saved_bi: saved budgeting information
  51. * @saved_free: saved amount of free space
  52. * @saved_idx_gc_cnt: saved value of @c->idx_gc_cnt
  53. *
  54. * @dfs_dir_name: name of debugfs directory containing this file-system's files
  55. * @dfs_dir: direntry object of the file-system debugfs directory
  56. * @dfs_dump_lprops: "dump lprops" debugfs knob
  57. * @dfs_dump_budg: "dump budgeting information" debugfs knob
  58. * @dfs_dump_tnc: "dump TNC" debugfs knob
  59. */
  60. struct ubifs_debug_info {
  61. struct ubifs_zbranch old_zroot;
  62. int old_zroot_level;
  63. unsigned long long old_zroot_sqnum;
  64. int failure_mode;
  65. int fail_delay;
  66. unsigned long fail_timeout;
  67. unsigned int fail_cnt;
  68. unsigned int fail_cnt_max;
  69. long long chk_lpt_sz;
  70. long long chk_lpt_sz2;
  71. long long chk_lpt_wastage;
  72. int chk_lpt_lebs;
  73. int new_nhead_offs;
  74. int new_ihead_lnum;
  75. int new_ihead_offs;
  76. struct ubifs_lp_stats saved_lst;
  77. struct ubifs_budg_info saved_bi;
  78. long long saved_free;
  79. int saved_idx_gc_cnt;
  80. char dfs_dir_name[100];
  81. struct dentry *dfs_dir;
  82. struct dentry *dfs_dump_lprops;
  83. struct dentry *dfs_dump_budg;
  84. struct dentry *dfs_dump_tnc;
  85. };
  86. #define ubifs_assert(expr) do { \
  87. if (unlikely(!(expr))) { \
  88. printk(KERN_CRIT "UBIFS assert failed in %s at %u (pid %d)\n", \
  89. __func__, __LINE__, current->pid); \
  90. dbg_dump_stack(); \
  91. } \
  92. } while (0)
  93. #define ubifs_assert_cmt_locked(c) do { \
  94. if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
  95. up_write(&(c)->commit_sem); \
  96. printk(KERN_CRIT "commit lock is not locked!\n"); \
  97. ubifs_assert(0); \
  98. } \
  99. } while (0)
  100. #define dbg_dump_stack() dump_stack()
  101. #define dbg_err(fmt, ...) do { \
  102. spin_lock(&dbg_lock); \
  103. ubifs_err(fmt, ##__VA_ARGS__); \
  104. spin_unlock(&dbg_lock); \
  105. } while (0)
  106. const char *dbg_key_str0(const struct ubifs_info *c,
  107. const union ubifs_key *key);
  108. const char *dbg_key_str1(const struct ubifs_info *c,
  109. const union ubifs_key *key);
  110. /*
  111. * TODO: these macros are now broken because there is no locking around them
  112. * and we use a global buffer for the key string. This means that in case of
  113. * concurrent execution we will end up with incorrect and messy key strings.
  114. */
  115. #define DBGKEY(key) dbg_key_str0(c, (key))
  116. #define DBGKEY1(key) dbg_key_str1(c, (key))
  117. #define ubifs_dbg_msg(type, fmt, ...) \
  118. pr_debug("UBIFS DBG " type ": " fmt "\n", ##__VA_ARGS__)
  119. /* Just a debugging messages not related to any specific UBIFS subsystem */
  120. #define dbg_msg(fmt, ...) \
  121. printk(KERN_DEBUG "UBIFS DBG (pid %d): %s: " fmt "\n", current->pid, \
  122. __func__, ##__VA_ARGS__)
  123. /* General messages */
  124. #define dbg_gen(fmt, ...) ubifs_dbg_msg("gen", fmt, ##__VA_ARGS__)
  125. /* Additional journal messages */
  126. #define dbg_jnl(fmt, ...) ubifs_dbg_msg("jnl", fmt, ##__VA_ARGS__)
  127. /* Additional TNC messages */
  128. #define dbg_tnc(fmt, ...) ubifs_dbg_msg("tnc", fmt, ##__VA_ARGS__)
  129. /* Additional lprops messages */
  130. #define dbg_lp(fmt, ...) ubifs_dbg_msg("lp", fmt, ##__VA_ARGS__)
  131. /* Additional LEB find messages */
  132. #define dbg_find(fmt, ...) ubifs_dbg_msg("find", fmt, ##__VA_ARGS__)
  133. /* Additional mount messages */
  134. #define dbg_mnt(fmt, ...) ubifs_dbg_msg("mnt", fmt, ##__VA_ARGS__)
  135. /* Additional I/O messages */
  136. #define dbg_io(fmt, ...) ubifs_dbg_msg("io", fmt, ##__VA_ARGS__)
  137. /* Additional commit messages */
  138. #define dbg_cmt(fmt, ...) ubifs_dbg_msg("cmt", fmt, ##__VA_ARGS__)
  139. /* Additional budgeting messages */
  140. #define dbg_budg(fmt, ...) ubifs_dbg_msg("budg", fmt, ##__VA_ARGS__)
  141. /* Additional log messages */
  142. #define dbg_log(fmt, ...) ubifs_dbg_msg("log", fmt, ##__VA_ARGS__)
  143. /* Additional gc messages */
  144. #define dbg_gc(fmt, ...) ubifs_dbg_msg("gc", fmt, ##__VA_ARGS__)
  145. /* Additional scan messages */
  146. #define dbg_scan(fmt, ...) ubifs_dbg_msg("scan", fmt, ##__VA_ARGS__)
  147. /* Additional recovery messages */
  148. #define dbg_rcvry(fmt, ...) ubifs_dbg_msg("rcvry", fmt, ##__VA_ARGS__)
  149. /*
  150. * Debugging check flags.
  151. *
  152. * UBIFS_CHK_GEN: general checks
  153. * UBIFS_CHK_TNC: check TNC
  154. * UBIFS_CHK_IDX_SZ: check index size
  155. * UBIFS_CHK_ORPH: check orphans
  156. * UBIFS_CHK_OLD_IDX: check the old index
  157. * UBIFS_CHK_LPROPS: check lprops
  158. * UBIFS_CHK_FS: check the file-system
  159. */
  160. enum {
  161. UBIFS_CHK_GEN = 0x1,
  162. UBIFS_CHK_TNC = 0x2,
  163. UBIFS_CHK_IDX_SZ = 0x4,
  164. UBIFS_CHK_ORPH = 0x8,
  165. UBIFS_CHK_OLD_IDX = 0x10,
  166. UBIFS_CHK_LPROPS = 0x20,
  167. UBIFS_CHK_FS = 0x40,
  168. };
  169. /*
  170. * Special testing flags.
  171. *
  172. * UBIFS_TST_RCVRY: failure mode for recovery testing
  173. */
  174. enum {
  175. UBIFS_TST_RCVRY = 0x4,
  176. };
  177. extern spinlock_t dbg_lock;
  178. extern unsigned int ubifs_msg_flags;
  179. extern unsigned int ubifs_chk_flags;
  180. extern unsigned int ubifs_tst_flags;
  181. int ubifs_debugging_init(struct ubifs_info *c);
  182. void ubifs_debugging_exit(struct ubifs_info *c);
  183. /* Dump functions */
  184. const char *dbg_ntype(int type);
  185. const char *dbg_cstate(int cmt_state);
  186. const char *dbg_jhead(int jhead);
  187. const char *dbg_get_key_dump(const struct ubifs_info *c,
  188. const union ubifs_key *key);
  189. void dbg_dump_inode(const struct ubifs_info *c, const struct inode *inode);
  190. void dbg_dump_node(const struct ubifs_info *c, const void *node);
  191. void dbg_dump_lpt_node(const struct ubifs_info *c, void *node, int lnum,
  192. int offs);
  193. void dbg_dump_budget_req(const struct ubifs_budget_req *req);
  194. void dbg_dump_lstats(const struct ubifs_lp_stats *lst);
  195. void dbg_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi);
  196. void dbg_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp);
  197. void dbg_dump_lprops(struct ubifs_info *c);
  198. void dbg_dump_lpt_info(struct ubifs_info *c);
  199. void dbg_dump_leb(const struct ubifs_info *c, int lnum);
  200. void dbg_dump_znode(const struct ubifs_info *c,
  201. const struct ubifs_znode *znode);
  202. void dbg_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat);
  203. void dbg_dump_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
  204. struct ubifs_nnode *parent, int iip);
  205. void dbg_dump_tnc(struct ubifs_info *c);
  206. void dbg_dump_index(struct ubifs_info *c);
  207. void dbg_dump_lpt_lebs(const struct ubifs_info *c);
  208. int dbg_walk_index(struct ubifs_info *c, dbg_leaf_callback leaf_cb,
  209. dbg_znode_callback znode_cb, void *priv);
  210. /* Checking functions */
  211. void dbg_save_space_info(struct ubifs_info *c);
  212. int dbg_check_space_info(struct ubifs_info *c);
  213. int dbg_check_lprops(struct ubifs_info *c);
  214. int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot);
  215. int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot);
  216. int dbg_check_cats(struct ubifs_info *c);
  217. int dbg_check_ltab(struct ubifs_info *c);
  218. int dbg_chk_lpt_free_spc(struct ubifs_info *c);
  219. int dbg_chk_lpt_sz(struct ubifs_info *c, int action, int len);
  220. int dbg_check_synced_i_size(struct inode *inode);
  221. int dbg_check_dir_size(struct ubifs_info *c, const struct inode *dir);
  222. int dbg_check_tnc(struct ubifs_info *c, int extra);
  223. int dbg_check_idx_size(struct ubifs_info *c, long long idx_size);
  224. int dbg_check_filesystem(struct ubifs_info *c);
  225. void dbg_check_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat,
  226. int add_pos);
  227. int dbg_check_lpt_nodes(struct ubifs_info *c, struct ubifs_cnode *cnode,
  228. int row, int col);
  229. int dbg_check_inode_size(struct ubifs_info *c, const struct inode *inode,
  230. loff_t size);
  231. int dbg_check_data_nodes_order(struct ubifs_info *c, struct list_head *head);
  232. int dbg_check_nondata_nodes_order(struct ubifs_info *c, struct list_head *head);
  233. /* Force the use of in-the-gaps method for testing */
  234. static inline int dbg_force_in_the_gaps_enabled(void)
  235. {
  236. return ubifs_chk_flags & UBIFS_CHK_GEN;
  237. }
  238. int dbg_force_in_the_gaps(void);
  239. /* Failure mode for recovery testing */
  240. #define dbg_failure_mode (ubifs_tst_flags & UBIFS_TST_RCVRY)
  241. #ifndef UBIFS_DBG_PRESERVE_UBI
  242. #define ubi_leb_read dbg_leb_read
  243. #define ubi_leb_write dbg_leb_write
  244. #define ubi_leb_change dbg_leb_change
  245. #define ubi_leb_erase dbg_leb_erase
  246. #define ubi_leb_unmap dbg_leb_unmap
  247. #define ubi_is_mapped dbg_is_mapped
  248. #define ubi_leb_map dbg_leb_map
  249. #endif
  250. int dbg_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset,
  251. int len, int check);
  252. int dbg_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf,
  253. int offset, int len, int dtype);
  254. int dbg_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf,
  255. int len, int dtype);
  256. int dbg_leb_erase(struct ubi_volume_desc *desc, int lnum);
  257. int dbg_leb_unmap(struct ubi_volume_desc *desc, int lnum);
  258. int dbg_is_mapped(struct ubi_volume_desc *desc, int lnum);
  259. int dbg_leb_map(struct ubi_volume_desc *desc, int lnum, int dtype);
  260. static inline int dbg_read(struct ubi_volume_desc *desc, int lnum, char *buf,
  261. int offset, int len)
  262. {
  263. return dbg_leb_read(desc, lnum, buf, offset, len, 0);
  264. }
  265. static inline int dbg_write(struct ubi_volume_desc *desc, int lnum,
  266. const void *buf, int offset, int len)
  267. {
  268. return dbg_leb_write(desc, lnum, buf, offset, len, UBI_UNKNOWN);
  269. }
  270. static inline int dbg_change(struct ubi_volume_desc *desc, int lnum,
  271. const void *buf, int len)
  272. {
  273. return dbg_leb_change(desc, lnum, buf, len, UBI_UNKNOWN);
  274. }
  275. /* Debugfs-related stuff */
  276. int dbg_debugfs_init(void);
  277. void dbg_debugfs_exit(void);
  278. int dbg_debugfs_init_fs(struct ubifs_info *c);
  279. void dbg_debugfs_exit_fs(struct ubifs_info *c);
  280. #else /* !CONFIG_UBIFS_FS_DEBUG */
  281. /* Use "if (0)" to make compiler check arguments even if debugging is off */
  282. #define ubifs_assert(expr) do { \
  283. if (0 && (expr)) \
  284. printk(KERN_CRIT "UBIFS assert failed in %s at %u (pid %d)\n", \
  285. __func__, __LINE__, current->pid); \
  286. } while (0)
  287. #define dbg_err(fmt, ...) do { \
  288. if (0) \
  289. ubifs_err(fmt, ##__VA_ARGS__); \
  290. } while (0)
  291. #define ubifs_dbg_msg(fmt, ...) do { \
  292. if (0) \
  293. pr_debug(fmt "\n", ##__VA_ARGS__); \
  294. } while (0)
  295. #define dbg_dump_stack()
  296. #define ubifs_assert_cmt_locked(c)
  297. #define dbg_msg(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  298. #define dbg_gen(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  299. #define dbg_jnl(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  300. #define dbg_tnc(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  301. #define dbg_lp(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  302. #define dbg_find(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  303. #define dbg_mnt(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  304. #define dbg_io(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  305. #define dbg_cmt(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  306. #define dbg_budg(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  307. #define dbg_log(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  308. #define dbg_gc(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  309. #define dbg_scan(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  310. #define dbg_rcvry(fmt, ...) ubifs_dbg_msg(fmt, ##__VA_ARGS__)
  311. #define DBGKEY(key) ((char *)(key))
  312. #define DBGKEY1(key) ((char *)(key))
  313. static inline int ubifs_debugging_init(struct ubifs_info *c) { return 0; }
  314. static inline void ubifs_debugging_exit(struct ubifs_info *c) { return; }
  315. static inline const char *dbg_ntype(int type) { return ""; }
  316. static inline const char *dbg_cstate(int cmt_state) { return ""; }
  317. static inline const char *dbg_jhead(int jhead) { return ""; }
  318. static inline const char *
  319. dbg_get_key_dump(const struct ubifs_info *c,
  320. const union ubifs_key *key) { return ""; }
  321. static inline void dbg_dump_inode(const struct ubifs_info *c,
  322. const struct inode *inode) { return; }
  323. static inline void dbg_dump_node(const struct ubifs_info *c,
  324. const void *node) { return; }
  325. static inline void dbg_dump_lpt_node(const struct ubifs_info *c,
  326. void *node, int lnum,
  327. int offs) { return; }
  328. static inline void
  329. dbg_dump_budget_req(const struct ubifs_budget_req *req) { return; }
  330. static inline void
  331. dbg_dump_lstats(const struct ubifs_lp_stats *lst) { return; }
  332. static inline void
  333. dbg_dump_budg(struct ubifs_info *c,
  334. const struct ubifs_budg_info *bi) { return; }
  335. static inline void dbg_dump_lprop(const struct ubifs_info *c,
  336. const struct ubifs_lprops *lp) { return; }
  337. static inline void dbg_dump_lprops(struct ubifs_info *c) { return; }
  338. static inline void dbg_dump_lpt_info(struct ubifs_info *c) { return; }
  339. static inline void dbg_dump_leb(const struct ubifs_info *c,
  340. int lnum) { return; }
  341. static inline void
  342. dbg_dump_znode(const struct ubifs_info *c,
  343. const struct ubifs_znode *znode) { return; }
  344. static inline void dbg_dump_heap(struct ubifs_info *c,
  345. struct ubifs_lpt_heap *heap,
  346. int cat) { return; }
  347. static inline void dbg_dump_pnode(struct ubifs_info *c,
  348. struct ubifs_pnode *pnode,
  349. struct ubifs_nnode *parent,
  350. int iip) { return; }
  351. static inline void dbg_dump_tnc(struct ubifs_info *c) { return; }
  352. static inline void dbg_dump_index(struct ubifs_info *c) { return; }
  353. static inline void dbg_dump_lpt_lebs(const struct ubifs_info *c) { return; }
  354. static inline int dbg_walk_index(struct ubifs_info *c,
  355. dbg_leaf_callback leaf_cb,
  356. dbg_znode_callback znode_cb,
  357. void *priv) { return 0; }
  358. static inline void dbg_save_space_info(struct ubifs_info *c) { return; }
  359. static inline int dbg_check_space_info(struct ubifs_info *c) { return 0; }
  360. static inline int dbg_check_lprops(struct ubifs_info *c) { return 0; }
  361. static inline int
  362. dbg_old_index_check_init(struct ubifs_info *c,
  363. struct ubifs_zbranch *zroot) { return 0; }
  364. static inline int
  365. dbg_check_old_index(struct ubifs_info *c,
  366. struct ubifs_zbranch *zroot) { return 0; }
  367. static inline int dbg_check_cats(struct ubifs_info *c) { return 0; }
  368. static inline int dbg_check_ltab(struct ubifs_info *c) { return 0; }
  369. static inline int dbg_chk_lpt_free_spc(struct ubifs_info *c) { return 0; }
  370. static inline int dbg_chk_lpt_sz(struct ubifs_info *c,
  371. int action, int len) { return 0; }
  372. static inline int dbg_check_synced_i_size(struct inode *inode) { return 0; }
  373. static inline int dbg_check_dir_size(struct ubifs_info *c,
  374. const struct inode *dir) { return 0; }
  375. static inline int dbg_check_tnc(struct ubifs_info *c, int extra) { return 0; }
  376. static inline int dbg_check_idx_size(struct ubifs_info *c,
  377. long long idx_size) { return 0; }
  378. static inline int dbg_check_filesystem(struct ubifs_info *c) { return 0; }
  379. static inline void dbg_check_heap(struct ubifs_info *c,
  380. struct ubifs_lpt_heap *heap,
  381. int cat, int add_pos) { return; }
  382. static inline int dbg_check_lpt_nodes(struct ubifs_info *c,
  383. struct ubifs_cnode *cnode, int row, int col) { return 0; }
  384. static inline int dbg_check_inode_size(struct ubifs_info *c,
  385. const struct inode *inode,
  386. loff_t size) { return 0; }
  387. static inline int
  388. dbg_check_data_nodes_order(struct ubifs_info *c,
  389. struct list_head *head) { return 0; }
  390. static inline int
  391. dbg_check_nondata_nodes_order(struct ubifs_info *c,
  392. struct list_head *head) { return 0; }
  393. static inline int dbg_force_in_the_gaps(void) { return 0; }
  394. #define dbg_force_in_the_gaps_enabled() 0
  395. #define dbg_failure_mode 0
  396. static inline int dbg_debugfs_init(void) { return 0; }
  397. static inline void dbg_debugfs_exit(void) { return; }
  398. static inline int dbg_debugfs_init_fs(struct ubifs_info *c) { return 0; }
  399. static inline int dbg_debugfs_exit_fs(struct ubifs_info *c) { return 0; }
  400. #endif /* !CONFIG_UBIFS_FS_DEBUG */
  401. #endif /* !__UBIFS_DEBUG_H__ */