On Wed, 2 May 2007 17:32:49 +0200 (CEST) Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> wrote: > On Wed, 2 May 2007, Christoph Hellwig wrote: > > On Wed, May 02, 2007 at 04:28:27PM +0200, Geert Uytterhoeven wrote: > > > - Check for GNU extension __FUNCTION__ > > > > __FUNCTION__ is prefered over __func__ > > Is there a reason for that? > - __FUNCTION__ is a GNU extension > - __func__ is C99 > - __func__ is shorter to type ;-) > In that case we should use __func__. But we discussed this at some length 3-4 years ago and decided to use __FUNCTION__. I don't remember why. Perhaps problems with gcc support for __func__? (It could have been that compile-time string concatenation was involved: printf("xxx" __FILE__); /* works */ printf("xxx" __FUNCTION__); /* doesn't */ Or not.) - 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/
- Follow-Ups:
- Re: checkpatch, a patch checking script.
- From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
- Re: checkpatch, a patch checking script.
- References:
- [PATCH 0/9] Kconfig: cleanup s390 v2.
- From: Martin Schwidefsky <schwidefsky@de.ibm.com>
- Re: [PATCH 0/9] Kconfig: cleanup s390 v2.
- From: Andrew Morton <akpm@linux-foundation.org>
- Re: [PATCH 0/9] Kconfig: cleanup s390 v2.
- From: Randy Dunlap <randy.dunlap@oracle.com>
- Re: [PATCH 0/9] Kconfig: cleanup s390 v2.
- From: Andrew Morton <akpm@linux-foundation.org>
- Re: [PATCH 0/9] Kconfig: cleanup s390 v2.
- From: Andrew Morton <akpm@linux-foundation.org>
- Re: [PATCH 0/9] Kconfig: cleanup s390 v2.
- From: Dave Jones <davej@redhat.com>
- Re: [PATCH 0/9] Kconfig: cleanup s390 v2.
- From: Randy Dunlap <randy.dunlap@oracle.com>
- Re: [PATCH 0/9] Kconfig: cleanup s390 v2.
- From: Andrew Morton <akpm@linux-foundation.org>
- checkpatch, a patch checking script.
- From: Dave Jones <davej@redhat.com>
- Re: checkpatch, a patch checking script.
- From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
- Re: checkpatch, a patch checking script.
- From: Christoph Hellwig <hch@infradead.org>
- Re: checkpatch, a patch checking script.
- From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
- [PATCH 0/9] Kconfig: cleanup s390 v2.
- Prev by Date: Re: [patch] CFS scheduler, -v8
- Next by Date: Re: 2.6.22 -mm merge plans: slub
- Previous by thread: Re: checkpatch, a patch checking script.
- Next by thread: Re: checkpatch, a patch checking script.
- Index(es):
![]() |