From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262782AbVFWTpC (ORCPT ); Thu, 23 Jun 2005 15:45:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262715AbVFWTjh (ORCPT ); Thu, 23 Jun 2005 15:39:37 -0400 Received: from ns.virtualhost.dk ([195.184.98.160]:19932 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S262659AbVFWTb7 (ORCPT ); Thu, 23 Jun 2005 15:31:59 -0400 Date: Thu, 23 Jun 2005 21:32:49 +0200 From: Jens Axboe To: Andrew Morton Cc: Jeff Mahoney , penberg@gmail.com, reiser@namesys.com, ak@suse.de, flx@namesys.com, zam@namesys.com, vs@thebsh.namesys.com, linux-kernel@vger.kernel.org, reiserfs-list@namesys.com, penberg@cs.helsinki.fi Subject: Re: -mm -> 2.6.13 merge status Message-ID: <20050623193247.GC6814@suse.de> References: <20050620235458.5b437274.akpm@osdl.org.suse.lists.linux.kernel> <42B86027.3090001@namesys.com> <20050621195642.GD14251@wotan.suse.de> <42B8C0FF.2010800@namesys.com> <84144f0205062223226d560e41@mail.gmail.com> <42BB0151.3030904@suse.de> <20050623114318.5ae13514.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050623114318.5ae13514.akpm@osdl.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 23 2005, Andrew Morton wrote: > Jeff Mahoney wrote: > > > > >>+ assert("nikita-955", pool != NULL); > > > > > > These assertion codes are meaningless to the rest of us so please drop > > > them. > > > > As someone who spends time debugging reiser3 issues, I've grown > > accustomed to the named assertions. They make discussing a particular > > assertion much more natural in conversation than file:line. > > __FUNCTION__? Doesn't help a lot. I've also been annoyed several times in the past when having to lookup a BUG() for a kernel source I don't exactly have at hand right then and there. If you have constructs ala function() { if (cond_a) BUG(); if (cond_b) BUG(); if (cond_c) BUG(); do_stuff... } then it's impossible to know which one it is without the identical source at hand. That said, I don't like the reiser name-number style. If you must do something like this, mark responsibility by using a named identifier covering the layer in question instead. assert("trace_hash-89", is_hashed(foo) != 0); or whatever. -- Jens Axboe