summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-03-08 20:49:39 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-03-08 20:49:39 +0000
commit10ce1006a23764eac13f1d7ca7841bda8abad5bb (patch)
tree3763d179acfdd3fae4b32cde323d05e099444dbd
parenta8fb100b7032b320f94853530099d4f5593c5bc2 (diff)
Fix some format specifiers in debug code.
Pointed out by Kor son of Rynar (sic) when trying to test some debug code. ok matthew@
-rw-r--r--sys/scsi/scsi_base.c4
-rw-r--r--sys/scsi/sd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 71d726003fa..ed976159163 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.218 2015/01/27 03:17:37 dlg Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.219 2015/03/08 20:49:38 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -2501,7 +2501,7 @@ scsi_xs_show(struct scsi_xfer *xs)
printf("retr(0x%x)", xs->retries);
printf("timo(0x%x)", xs->timeout);
printf("data(%p)", xs->data);
- printf("res(0x%x)", xs->resid);
+ printf("res(0x%zx)", xs->resid);
printf("err(0x%x)", xs->error);
printf("bp(%p)\n", xs->bp);
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index caf0d873b0e..a8d9032c54e 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.258 2014/12/15 02:11:57 tedu Exp $ */
+/* $OpenBSD: sd.c,v 1.259 2015/03/08 20:49:38 krw Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
@@ -1714,7 +1714,7 @@ validate:
break;
default:
SC_DEBUG(sc->sc_link, SDEV_DB1,
- ("sd_get_parms: bad secsize: %#x\n", dp->secsize));
+ ("sd_get_parms: bad secsize: %#lx\n", dp->secsize));
return (SDGP_RESULT_OFFLINE);
}