summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-12-07 21:06:56 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-12-07 21:06:56 +0000
commitb2fbb3205e50953afaa679f78005bc0b01927f9c (patch)
tree40cc372081983ca1366a82ef41c63233d433d44c /sys
parentabe6b994b00116d0c888774cff02e963828fdc32 (diff)
Response status field is signed; adjust the debug message
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pv/xbf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pv/xbf.c b/sys/dev/pv/xbf.c
index ef3b454fba2..b3d9e5c83a0 100644
--- a/sys/dev/pv/xbf.c
+++ b/sys/dev/pv/xbf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xbf.c,v 1.3 2016/12/07 19:17:52 mikeb Exp $ */
+/* $OpenBSD: xbf.c,v 1.4 2016/12/07 21:06:55 mikeb Exp $ */
/*
* Copyright (c) 2016 Mike Belopuhov
@@ -556,7 +556,7 @@ xbf_complete_cmd(struct scsi_xfer *xs, int desc)
union xbf_ring_desc *xrd;
bus_dmamap_t map;
uint64_t id;
- uint16_t status;
+ int16_t status;
uint8_t op;
int error;
@@ -581,7 +581,7 @@ xbf_complete_cmd(struct scsi_xfer *xs, int desc)
memset(xrd, 0, sizeof(*xrd));
xrd->xrd_req.req_id = id;
- DPRINTF("%s: completing desc %u(%llu) op %u with error %u\n",
+ DPRINTF("%s: completing desc %u(%llu) op %u with error %d\n",
sc->sc_dev.dv_xname, desc, id, op, status);
xs->resid = 0;