[PATCH] XATTR issues on JFFS2
Kaigai Kohei
kaigai at ak.jp.nec.com
Sun Nov 27 23:13:38 EST 2005
Hello Artem,
> to ease JFFS2 debugging I split debugging messages by subsystems and one
> may enable/disable debugging messages from each subsystem separately. I
> wonder, if it is possible to add DBG_XATTR() or the like instead of
> using D1()? It really makes bugs hunting easier. Please, glance at debug.h.
I agree what you say.
There is especially no reason why such a stub macro is not used.
In the next patch, I'll use some stub macros as are defined in debug.h.
The following definition will be added in debug.h, and I'll use JFFS2_NOTICE()
and so on instead of raw-printk().
/* Watch the XATTR subsystem */
#ifdef JFFS2_DBG_XATTR_MESSAGES
#define dbg_xattr(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define dbg_xattr(fmt, ...)
#endif
Thanks,
--
Linux Promotion Center, NEC
KaiGai Kohei <kaigai at ak.jp.nec.com>
More information about the linux-mtd
mailing list