Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 13 Sep 2002 16:11:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 13 Sep 2002 16:11:18 -0400 Received: from 213-152-55-49.dsl.eclipse.net.uk ([213.152.55.49]:16102 "EHLO monkey.daikokuya.co.uk") by vger.kernel.org with ESMTP id ; Fri, 13 Sep 2002 16:11:16 -0400 Date: Fri, 13 Sep 2002 21:12:58 +0100 From: Neil Booth To: Andreas Steinmetz Cc: Thunder from the hill , Bob_Tracy , dag@brattli.net, linux-kernel@vger.kernel.org Subject: Re: 2.5.34: IR __FUNCTION__ breakage Message-ID: <20020913201258.GA11481@daikokuya.co.uk> References: <3D820BC9.5080207@domdv.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D820BC9.5080207@domdv.de> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 616 Lines: 20 Andreas Steinmetz wrote:- > At least for gcc 3.2 this would be better: > > #define DERROR(dbg, fmt, args...) \ > do { if (DEBUG_##dbg) \ > printk(KERN_INFO "irnet: %s(): " fmt, __FUNCTION__, ##args); \ > } while(0) > > Unfortunately this doesn't work with gcc 2.95.3. I think it might if you put a space after __FUNCTION__ and before the comma. Neil. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/