summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pciide.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/pci/pciide.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/pci/pciide.c')
-rw-r--r--sys/dev/pci/pciide.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index d2961358ce2..914b6d84d04 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.360 2020/01/24 03:29:55 tedu Exp $ */
+/* $OpenBSD: pciide.c,v 1.361 2020/07/24 12:43:31 krw Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -1517,8 +1517,8 @@ pciide_attach(struct device *parent, struct device *self, void *aux)
sc->sc_dmactl_write = pciide_dmactl_write;
sc->sc_dmatbl_write = pciide_dmatbl_write;
- WDCDEBUG_PRINT((" sc_pc=%p, sc_tag=%p, pa_class=0x%x\n", sc->sc_pc,
- sc->sc_tag, pa->pa_class), DEBUG_PROBE);
+ WDCDEBUG_PRINT((" sc_pc=%p, sc_tag=0x%x, pa_class=0x%x\n", sc->sc_pc,
+ (u_int32_t)sc->sc_tag, pa->pa_class), DEBUG_PROBE);
if (pciide_skip_ata)
sc->sc_wdcdev.quirks |= WDC_QUIRK_NOATA;