summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-03-02 04:48:41 +0000
committermjacob <mjacob@FreeBSD.org>2001-03-02 04:48:41 +0000
commite8e0f2c4fb182f870f4f69b2c7f2523a947f0bca (patch)
treea0f5f311e4e4ddd4946195e9f891611b389aec14 /sys/dev
parent105d96861067ee8c61f7d346ec23ef6c58bca09c (diff)
downloadFreeBSD-src-e8e0f2c4fb182f870f4f69b2c7f2523a947f0bca.zip
FreeBSD-src-e8e0f2c4fb182f870f4f69b2c7f2523a947f0bca.tar.gz
Fix isp_print_qentry to print all four lines- it's been broken for months.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isp/isp_inline.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_inline.h b/sys/dev/isp/isp_inline.h
index 8875fcc..cd7bd3d 100644
--- a/sys/dev/isp/isp_inline.h
+++ b/sys/dev/isp/isp_inline.h
@@ -179,14 +179,15 @@ isp_print_qentry(isp, msg, idx, arg)
int amt, i, j;
u_int8_t *ptr = arg;
+ isp_prt(isp, ISP_LOGALL, "%s index %d=>", msg, idx);
for (buf[0] = 0, amt = i = 0; i < 4; i++) {
buf[0] = 0;
+ SNPRINTF(buf, TBA, " ");
for (j = 0; j < (QENTRY_LEN >> 2); j++) {
SNPRINTF(buf, TBA, "%s %02x", buf, ptr[amt++] & 0xff);
}
- STRNCAT(buf, "\n", TBA);
+ isp_prt(isp, ISP_LOGALL, buf);
}
- isp_prt(isp, ISP_LOGALL, "%s index %d:%s", msg, idx, buf);
}
static INLINE void
OpenPOWER on IntegriCloud