summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2008-06-12 21:20:00 +0000
committermglocker <mglocker@openbsd.org>2008-06-12 21:20:00 +0000
commitb121e78ae1b5283a669b282440445e348e2969f4 (patch)
tree226ba4331da2a676f7cf2e8f976d77edd7e2fac2 /sys/dev
parentmake ssh-keygen -lf show the key type just as ssh-add -l would do it (diff)
downloadwireguard-openbsd-b121e78ae1b5283a669b282440445e348e2969f4.tar.xz
wireguard-openbsd-b121e78ae1b5283a669b282440445e348e2969f4.zip
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 *);