Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 2008 23:33:40 +0100
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        Robert Noland <rnoland@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r186385 - head/sys/dev/agp
Message-ID:  <20081221223339.GA1359@lizard.fafoe.narf.at>
In-Reply-To: <200812212230.mBLMUbbt043962@svn.freebsd.org>
References:  <200812212230.mBLMUbbt043962@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 21, 2008 at 10:30:37PM +0000, Robert Noland wrote:
> Author: rnoland
> Date: Sun Dec 21 22:30:37 2008
> New Revision: 186385
> URL: http://svn.freebsd.org/changeset/base/186385
> 
> Log:
>   Deal with 0 length args...
>   
>   Approved by:	kib
> 
> Modified:
>   head/sys/dev/agp/agppriv.h
> 
> Modified: head/sys/dev/agp/agppriv.h
> ==============================================================================
> --- head/sys/dev/agp/agppriv.h	Sun Dec 21 22:00:39 2008	(r186384)
> +++ head/sys/dev/agp/agppriv.h	Sun Dec 21 22:30:37 2008	(r186385)
> @@ -38,7 +38,7 @@
>  
>  #ifdef AGP_DEBUG
>  #define AGP_DPF(fmt, ...) do {				\
> -    printf("agp: " fmt, __VA_ARGS__);			\
> +    printf("agp: " fmt, ##__VA_ARGS__);			\
>  } while (0)
>  #else
>  #define AGP_DPF(fmt, ...) do {} while (0)
> 

This is a GCC extension and kind of defeats the point of using the C99
syntax.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081221223339.GA1359>