svn commit: r186384 - head/sys/dev/agp
Robert Noland
rnoland at FreeBSD.org
Sun Dec 21 22:00:39 UTC 2008
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"
More information about the svn-src-all
mailing list