[xserver-commit] xserver/drm libdrm.c,1.1.2.1,1.1.2.2
Eric Anholt
xserver-commit@pdx.freedesktop.org
Sun, 28 Dec 2003 21:10:57 -0800
Committed by: anholt
Update of /cvs/xserver/xserver/drm
In directory pdx:/home/anholt/xserver-dri/drm
Modified Files:
Tag: dri-0-1-branch
libdrm.c
Log Message:
- Disable libdrm verbosity. It isn't important enough yet to make
a run-time flag for it.
- Fix the (void)atic; tricks to quiet unused variable warnings in
ATI template files. Mixing statements and variable defines works
in newer compilers, but not pdx's.
Index: libdrm.c
===================================================================
RCS file: /cvs/xserver/xserver/drm/Attic/libdrm.c,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- libdrm.c 1 Dec 2003 22:56:04 -0000 1.1.2.1
+++ libdrm.c 29 Dec 2003 05:10:55 -0000 1.1.2.2
@@ -89,6 +89,8 @@
#define makedev(x,y) ((dev_t)(((x) << 8) | (y)))
#endif
+#define DRM_VERBOSE 0
+
/**
* Output a message to stderr.
*
@@ -100,11 +102,13 @@
static void
drmMsg(const char *format, ...)
{
+#if DRM_VERBOSE
va_list ap;
- va_start(ap, format);
- vfprintf(stderr, format, ap);
- va_end(ap);
+ va_start(ap, format);
+ vfprintf(stderr, format, ap);
+ va_end(ap);
+#endif /* DRM_VERBOSE */
}
static void *drmHashTable = NULL; /* Context switch callbacks */