Hi Artem, Pekka Enberg wrote:On Tue, Apr 1, 2008 at 1:26 PM, Artem Bityutskiy <Artem.Bityutskiy@nokia.com> wrote: I don't know how many times I have to say this: you're doing it at the wrong level! The reason you want to compile them out is because you've added crap like this all over your code paths: ubifs_assert(PageLocked(page)); ubifs_assert(!PageChecked(page)); ubifs_assert(!PagePrivate(page)); So instead of arguing about this you really ought to look at what SLUB, for example, does. It's perfectly okay to have _debugging checks_ compiled out (stuff like verify_inode and such) but at the assertion level it makes no sense whatsoever! Pekka Enberg wrote: On Tue, Apr 1, 2008 at 1:26 PM, Artem Bityutskiy <Artem.Bityutskiy@nokia.com> wrote: So what? It's still an ad hoc debugging printout with no particular meaning whatsoever. But this discussion is getting nowhere and I have better things to do than argue about this over and over again. So to reiterate my review comments on this: - Kill your home-grown assert - Fix up your logging messages to actually make sense - Perhaps introduce a ubifs_error() thingy and convert as much code to use that - Reduce the amount of debug Kconfig options You can ignore these comments as my personal preferences all you want in which case I can only wish you good luck with merging this thing upstream. Pekka --
| Alan Cox | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Con Kolivas | Re: -mm merge plans for 2.6.23 |
| Jens Axboe | Re: [00/17] Large Blocksize Support V3 |
| David Miller | Slow DOWN, please!!! |
git: | |
| Johannes Schindelin | Re: [PATCH] RFC: git lazy clone proof-of-concept |
| Dan McGee | Re: I don't want the .git directory next to my code. |
| Wink Saville | Resolving conflicts |
| walt | git versus CVS (versus bk) |
| pete cervasio | Re: Splitting comp.os.linux |
| Wolfgang Thiel | mtools |
| BILES, GREG THOMAS | mtools |
| Robert L. Mcmillin | Re: Splitting comp.os.lin |
| Richard Wilson | OpenBSD in the webcomic XKCD |
| David Newman | setting dscp or tos bits |
| Richard Stallman | Real men don't attack straw men |
| Edwin Eyan Moragas | poll(2) vs kqueue(2) performance |
