From: Andreas Steinmetz <ast@domdv.de>
To: Neil Booth <neil@daikokuya.co.uk>
Cc: Thunder from the hill <thunder@lightweight.ods.org>,
dag@brattli.net, linux-kernel@vger.kernel.org
Subject: Re: 2.5.34: IR __FUNCTION__ breakage
Date: Fri, 13 Sep 2002 22:30:16 +0200 [thread overview]
Message-ID: <3D824AD8.8050501@domdv.de> (raw)
In-Reply-To: 20020913201258.GA11481@daikokuya.co.uk
Neil Booth wrote:
> 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.
>
Yes, I just verified it does work this way on gcc 2.95.3 though in my
opinion it is very prone to errors (typos, ...). Furthermore I don't
have any older compilers around for testing this which might still be in
use.
--
Andreas Steinmetz
D.O.M. Datenverarbeitung GmbH
next prev parent reply other threads:[~2002-09-13 20:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 19:54 2.5.34: IR __FUNCTION__ breakage Bob_Tracy
2002-09-12 20:16 ` Thunder from the hill
2002-09-12 21:09 ` Bob_Tracy
2002-09-13 16:01 ` Andreas Steinmetz
2002-09-13 16:14 ` Thunder from the hill
2002-09-13 17:46 ` Ahmed Masud
2002-09-13 18:01 ` Andreas Steinmetz
2002-09-13 20:11 ` Thunder from the hill
2002-09-13 20:12 ` Neil Booth
2002-09-13 20:30 ` Andreas Steinmetz [this message]
2002-09-13 20:53 ` Thunder from the hill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D824AD8.8050501@domdv.de \
--to=ast@domdv.de \
--cc=dag@brattli.net \
--cc=linux-kernel@vger.kernel.org \
--cc=neil@daikokuya.co.uk \
--cc=thunder@lightweight.ods.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.