summaryrefslogtreecommitdiffstats
path: root/sys/dev/agp
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2008-12-21 22:00:39 +0000
committerrnoland <rnoland@FreeBSD.org>2008-12-21 22:00:39 +0000
commitba8a5eba4aa6943bdff5c61c43a3dddd4fa577f8 (patch)
tree668302e6803f86fff263a5354e7fac9cf6525eef /sys/dev/agp
parentc48b61a389020acf4ab85f00bc3a05fac8d07ecf (diff)
downloadFreeBSD-src-ba8a5eba4aa6943bdff5c61c43a3dddd4fa577f8.zip
FreeBSD-src-ba8a5eba4aa6943bdff5c61c43a3dddd4fa577f8.tar.gz
Fix AGP_DEBUG macro to use c99 __VA_ARGS__ and build if enabled.
Approved by: kib
Diffstat (limited to 'sys/dev/agp')
-rw-r--r--sys/dev/agp/agppriv.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/agp/agppriv.h b/sys/dev/agp/agppriv.h
index 32ec78a..1c80e4c 100644
--- a/sys/dev/agp/agppriv.h
+++ b/sys/dev/agp/agppriv.h
@@ -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"
OpenPOWER on IntegriCloud