From b6b6ad2f237259c8ef225a01a656caee7ca2f60b Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sun, 27 Aug 2000 23:38:44 +0000 Subject: various fixes --- sys/dev/isp/isp_inline.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/dev/isp/isp_inline.h') diff --git a/sys/dev/isp/isp_inline.h b/sys/dev/isp/isp_inline.h index 8c086b9bedea..a32461ece74e 100644 --- a/sys/dev/isp/isp_inline.h +++ b/sys/dev/isp/isp_inline.h @@ -83,7 +83,7 @@ isp_save_xs(isp, xs, handlep) *handlep = j+1; if (++j == isp->isp_maxcmds) j = 0; - isp->isp_lasthdls = j; + isp->isp_lasthdls = (u_int16_t)j; return (0); } @@ -206,18 +206,20 @@ isp_print_bytes(isp, msg, amt, arg) u_int8_t *ptr = arg; int off; + if (msg) + isp_prt(isp, ISP_LOGALL, "%s:", msg); off = 0; + buf[0] = 0; while (off < amt) { int j, to; to = off; - SNPRINTF(buf, 128, "<"); for (j = 0; j < 16; j++) { SNPRINTF(buf, 128, "%s %02x", buf, ptr[off++] & 0xff); if (off == amt) break; } - isp_prt(isp, ISP_LOGALL, - "<%s>offset=0x%x:\n%s>", msg, to, buf); + isp_prt(isp, ISP_LOGALL, "0x%08x:%s", to, buf); + buf[0] = 0; } } #endif /* _ISP_INLINE_H */ -- cgit v1.3