summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_inline.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isp/isp_inline.h')
-rw-r--r--sys/dev/isp/isp_inline.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/isp/isp_inline.h b/sys/dev/isp/isp_inline.h
index 8c086b9..a32461e 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 */
OpenPOWER on IntegriCloud