summaryrefslogtreecommitdiff
path: root/sys/dev/ic/qlw.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-07-24 12:43:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-07-24 12:43:33 +0000
commit8d84e6a4e7a5f0bd3d0a76a78a589398b82682f5 (patch)
tree77fa066862bec61cd8ade1996d71b5fbc6e376ba /sys/dev/ic/qlw.c
parent3fb25c97b24aa3b863512c9d00ae75e00876e349 (diff)
Turning on various scsi drivers' *DEBUG options reveals that this has
rarely (if ever) been done. Fix many printf format errors to calm clang and gcc on amd64, i386, hppa. Missing #include, complaints if 'option <blah>DEBUG' is used in config files, etc. All in debug code.
Diffstat (limited to 'sys/dev/ic/qlw.c')
-rw-r--r--sys/dev/ic/qlw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/qlw.c b/sys/dev/ic/qlw.c
index feb4925c952..eacbe402c13 100644
--- a/sys/dev/ic/qlw.c
+++ b/sys/dev/ic/qlw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qlw.c,v 1.44 2020/07/20 14:41:13 krw Exp $ */
+/* $OpenBSD: qlw.c,v 1.45 2020/07/24 12:43:31 krw Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -39,8 +39,10 @@
#include <dev/ic/qlwvar.h>
#ifndef SMALL_KERNEL
+#ifndef QLW_DEBUG
#define QLW_DEBUG
#endif
+#endif
#ifdef QLW_DEBUG
#define DPRINTF(m, f...) do { if ((qlwdebug & (m)) == (m)) printf(f); } \