svn commit: r186385 - head/sys/dev/agp

Stefan Farfeleder stefanf at FreeBSD.org
Sun Dec 21 22:50:25 UTC 2008


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.


More information about the svn-src-head mailing list