diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-02-06 21:43:49 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-02-06 21:43:49 +0000 |
commit | b3efe1bf17f3b1f70522a57b58ead18be3ea3e6e (patch) | |
tree | 86b8280634b4a797fdfe9b6390b8537dd80e7505 /sys/dev/pv/xbf.c | |
parent | 21d83401dd57aa8761ec0d503af1c87eb5c0b24c (diff) |
Use separate compile time debug flags for xen, xnf and xbf
Diffstat (limited to 'sys/dev/pv/xbf.c')
-rw-r--r-- | sys/dev/pv/xbf.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/pv/xbf.c b/sys/dev/pv/xbf.c index 89864b96047..dffe39a6a81 100644 --- a/sys/dev/pv/xbf.c +++ b/sys/dev/pv/xbf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xbf.c,v 1.16 2017/01/19 12:36:50 mikeb Exp $ */ +/* $OpenBSD: xbf.c,v 1.17 2017/02/06 21:43:48 mikeb Exp $ */ /* * Copyright (c) 2016 Mike Belopuhov @@ -38,6 +38,14 @@ #include <scsi/scsi_disk.h> #include <scsi/scsiconf.h> +/* #define XBF_DEBUG */ + +#ifdef XBF_DEBUG +#define DPRINTF(x...) printf(x) +#else +#define DPRINTF(x...) +#endif + #define XBF_OP_READ 0 #define XBF_OP_WRITE 1 #define XBF_OP_BARRIER 2 /* feature-barrier */ @@ -985,7 +993,7 @@ xbf_init(struct xbf_softc *sc) if (error == 0 && res == 1) sc->sc_caps |= XBF_CAP_FLUSH; -#ifdef XEN_DEBUG +#ifdef XBF_DEBUG if (sc->sc_caps) { printf("%s: features:", sc->sc_dev.dv_xname); if (sc->sc_caps & XBF_CAP_BARRIER) |