summaryrefslogtreecommitdiff
path: root/sys/dev/ic/isp.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-05-23 01:32:26 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-05-23 01:32:26 +0000
commit353cef1f6eeaad251d9bf77378dc00387d19e3fb (patch)
tree12120dc671d3a709abb43100dd7a13ec5c0685f9 /sys/dev/ic/isp.c
parentae5cd5ede9b8a1308a5e04a995d4548a799b11d4 (diff)
%z in printf(9) is not the same as %z in printf(3). Change to %lu
and cast arg to ulong. OK jsg@ and krw@.
Diffstat (limited to 'sys/dev/ic/isp.c')
-rw-r--r--sys/dev/ic/isp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/isp.c b/sys/dev/ic/isp.c
index 9aa32f59acd..c23d1089bd5 100644
--- a/sys/dev/ic/isp.c
+++ b/sys/dev/ic/isp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isp.c,v 1.38 2007/04/10 17:47:55 miod Exp $ */
+/* $OpenBSD: isp.c,v 1.39 2007/05/23 01:32:25 ray Exp $ */
/*
* Machine and OS Independent (well, as best as possible)
* code for the Qlogic ISP SCSI adapters.
@@ -99,7 +99,7 @@ static const char topology[] =
static const char swrej[] =
"Fabric Nameserver rejected %s (Reason=0x%x Expl=0x%x) for Port ID 0x%x";
static const char finmsg[] =
- "(%d.%d.%d): FIN dl%d resid %zu STS 0x%x SKEY %c XS_ERR=0x%x";
+ "(%d.%d.%d): FIN dl%d resid %lu STS 0x%x SKEY %c XS_ERR=0x%x";
static const char sc0[] =
"%s CHAN %d FTHRSH %d IID %d RESETD %d RETRYC %d RETRYD %d ASD 0x%x";
static const char sc1[] =
@@ -3880,7 +3880,8 @@ again:
skey = '.';
}
isp_prt(isp, ISP_LOGALL, finmsg, XS_CHANNEL(xs),
- XS_TGT(xs), XS_LUN(xs), XS_XFRLEN(xs), XS_RESID(xs),
+ XS_TGT(xs), XS_LUN(xs), XS_XFRLEN(xs),
+ (ulong)XS_RESID(xs),
*XS_STSP(xs), skey, XS_ERR(xs));
}