Hi Artem, Pekka Enberg wrote:On Tue, Apr 1, 2008 at 12:25 PM, Artem Bityutskiy <Artem.Bityutskiy@nokia.com> wrote: First and foremost, JFFS2 uses BUG_ON and doesn't invent it's own assert. Furthermore, the debug tracing code prints out human-readable text in well-thought of places. It's looks bit excessive to me and I don't see a good reason why the different logging levels are not run-time configurable (if you're going to invent a logging infrastructure, why not do it properly). But there simply is no comparison between JFFS2 and UBIFS debug logging code. The former is cleanly structured whereas yours looks to be totally ad hoc. But perhaps the problem will go away after you inject some sanity to stuff like this: fs/ubifs/dir.c: dbg_gen("dent '%.*s' to ino %lu (nlink %d) in dir ino %lu", fs/ubifs/dir.c: dbg_gen("dent '%.*s' from ino %lu (nlink %d) in dir ino %lu", fs/ubifs/dir.c: dbg_gen("directory '%.*s', ino %lu in dir ino %lu", dentry->d_name.len, fs/ubifs/dir.c: dbg_gen("dent '%.*s', mode %#x in dir ino %lu", fs/ubifs/dir.c: dbg_gen("dent '%.*s' in dir ino %lu", Pekka --
| Hiten Pandya | Re: up? (emacs docbook xml ide) |
| David Newall | Re: Slow DOWN, please!!! |
| Greg KH | Re: [Ksummit-2008-discuss] Fixing the Kernel Janitors project |
| James Morris | Re: LSM conversion to static interface |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [BUG] New Kernel Bugs |
