diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2000-08-27 23:38:44 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2000-08-27 23:38:44 +0000 |
| commit | b6b6ad2f237259c8ef225a01a656caee7ca2f60b (patch) | |
| tree | 2408272da3a6772b62762f956d64d02647e355b1 /sys/dev/isp/isp_inline.h | |
| parent | 3aa9aaf931d031d04987c886258dd3cd83d399d3 (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp/isp_inline.h')
| -rw-r--r-- | sys/dev/isp/isp_inline.h | 10 |
1 files changed, 6 insertions, 4 deletions
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 */ |
