summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-06-12 21:20:01 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-06-12 21:20:01 +0000
commit345169a2cbb1a20110e92f2472df6412efd1f27c (patch)
treeeabc80b7108b81e051435d1fced314d42ab44a16 /sys/dev
parentb968e3a1ed9e061efbc002012da6c2823e1eb96d (diff)
Wrap DPRINTF around #ifdef VIDEO_DEBUG, but leave debugging on by
default for now.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/video.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/video.c b/sys/dev/video.c
index 1888d963fbe..229ba657ba3 100644
--- a/sys/dev/video.c
+++ b/sys/dev/video.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: video.c,v 1.12 2008/06/11 01:27:30 robert Exp $ */
+/* $OpenBSD: video.c,v 1.13 2008/06/12 21:20:00 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
*
@@ -33,7 +33,13 @@
#include <dev/video_if.h>
#include <dev/videovar.h>
+#define VIDEO_DEBUG /* XXX remove from here somewhen */
+
+#ifdef VIDEO_DEBUG
#define DPRINTF(x) do { printf x; } while (0)
+#else
+#define DPRINTF(x)
+#endif
int videoprobe(struct device *, void *, void *);
void videoattach(struct device *, struct device *, void *);