Date: Sun, 21 Dec 2008 22:00:39 +0000 (UTC) From: Robert Noland <rnoland@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186384 - head/sys/dev/agp Message-ID: <200812212200.mBLM0d7q043427@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rnoland Date: Sun Dec 21 22:00:39 2008 New Revision: 186384 URL: http://svn.freebsd.org/changeset/base/186384 Log: Fix AGP_DEBUG macro to use c99 __VA_ARGS__ and build if enabled. 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 21:54:01 2008 (r186383) +++ head/sys/dev/agp/agppriv.h Sun Dec 21 22:00:39 2008 (r186384) @@ -36,15 +36,12 @@ #include <sys/agpio.h> #include <dev/agp/agpvar.h> -#define AGP_DEBUGxx - #ifdef AGP_DEBUG -#define AGP_DPF(x...) do { \ - printf("agp: "); \ - printf(##x); \ +#define AGP_DPF(fmt, ...) do { \ + printf("agp: " fmt, __VA_ARGS__); \ } while (0) #else -#define AGP_DPF(x...) do {} while (0) +#define AGP_DPF(fmt, ...) do {} while (0) #endif #include "agp_if.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812212200.mBLM0d7q043427>