Hi Artem, Pekka Enberg wrote:On Tue, Apr 1, 2008 at 11:51 AM, Artem Bityutskiy <dedekind@yandex.ru> wrote: Yeah, perhaps that's a sign that you're doing it wrong? You currently have 430 separate debug printks sprinkled around in UBIFS. The way to reduce that is to move as much logging as possible higher up the call chain and dump as much information as you can there. That's what ext2_error() does, for example. So I'm not opposed to a ubifs_error() or ubifs_warning() even if that's used in a controlled fashion. The way you do debugging checks now is totally ad hoc and IMHO not acceptable to the mainline kernel. And like I said, if you need _tracing_ you might want to look at Ingo's ftrace or some other similar tracing infrastructure and use that. The upside of it is that you can basically have it enabled at run-time too. Pekka Enberg wrote: On Tue, Apr 1, 2008 at 11:51 AM, Artem Bityutskiy <dedekind@yandex.ru> wrote: So perhaps you could just separate those heavy-weight options and have all others under CONFIG_UBIFS_DEBUG? Pekka --
| Andrew Morton | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andrew Morton | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Stephen Rothwell | Re: Announce: Linux-next (Or Andrew's dream :-)) |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | [GIT]: Networking |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
