diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-11-11 17:01:06 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-11-11 10:32:45 +0100 |
commit | 40cc022371625b1c8ee98377daad368582b6ebfc (patch) | |
tree | 0339786bb98cab76a3bb6a8c8b055a1f3b239ccf /ubifs-utils/libubifs/debug.h | |
parent | fabde6440cac726bcd6cec36bbc9946b67be45da (diff) |
fsck.ubifs: Add node parsing functions
Add parsing functions for each type of nodes, which will be used for
checking the validity of raw node data while reading from TNC or
scanning from UBIFS logical erase block.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/libubifs/debug.h')
-rw-r--r-- | ubifs-utils/libubifs/debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ubifs-utils/libubifs/debug.h b/ubifs-utils/libubifs/debug.h index dfc4dca..2ac4302 100644 --- a/ubifs-utils/libubifs/debug.h +++ b/ubifs-utils/libubifs/debug.h @@ -77,6 +77,8 @@ void ubifs_assert_failed(struct ubifs_info *c, const char *expr, #define dbg_scan(fmt, ...) ubifs_dbg_msg("scan", fmt, ##__VA_ARGS__) /* Additional recovery messages */ #define dbg_rcvry(fmt, ...) ubifs_dbg_msg("rcvry", fmt, ##__VA_ARGS__) +/* Additional fsck messages */ +#define dbg_fsck(fmt, ...) ubifs_dbg_msg("fsck", fmt, ##__VA_ARGS__) static inline int dbg_is_chk_index(__unused const struct ubifs_info *c) { return 0; } |