Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

UBI: introduce debugging helper function

Introduce a helper function to print hexdump: 'ubi_dbg_print_hex_dump()'.
It is compiled out if debugging is enabled. Will be used in the next patch.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

+4
+4
drivers/mtd/ubi/debug.h
··· 57 57 void ubi_dbg_dump_mkvol_req(const struct ubi_mkvol_req *req); 58 58 void ubi_dbg_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len); 59 59 60 + #define ubi_dbg_print_hex_dump(l, ps, pt, r, g, b, len, a) \ 61 + print_hex_dump(l, ps, pt, r, g, b, len, a) 62 + 60 63 #ifdef CONFIG_MTD_UBI_DEBUG_MSG 61 64 /* General debugging messages */ 62 65 #define dbg_gen(fmt, ...) dbg_msg(fmt, ##__VA_ARGS__) ··· 175 172 #define ubi_dbg_dump_seb(seb, type) ({}) 176 173 #define ubi_dbg_dump_mkvol_req(req) ({}) 177 174 #define ubi_dbg_dump_flash(ubi, pnum, offset, len) ({}) 175 + #define ubi_dbg_print_hex_dump(l, ps, pt, r, g, b, len, a) ({}) 178 176 179 177 #define UBI_IO_DEBUG 0 180 178 #define DBG_DISABLE_BGT 0