diff options
| author | mjacob <mjacob@NetBSD.org> | 2000-08-27 21:43:26 +0000 |
|---|---|---|
| committer | mjacob <mjacob@NetBSD.org> | 2000-08-27 21:43:26 +0000 |
| commit | 37c83e1340aa2fd2d49cf38560694ce735fe0078 (patch) | |
| tree | 19c3387a4bd1f61110e0c2e15495df1fc0f9f221 /sys/dev/ic/isp_inline.h | |
| parent | f11cee47f5be1691edde4f4f99e0833c4ab8e0d1 (diff) | |
fix some missing initializations
Diffstat (limited to 'sys/dev/ic/isp_inline.h')
| -rw-r--r-- | sys/dev/ic/isp_inline.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/ic/isp_inline.h b/sys/dev/ic/isp_inline.h index 53a4911a20e..2014fda220f 100644 --- a/sys/dev/ic/isp_inline.h +++ b/sys/dev/ic/isp_inline.h @@ -1,4 +1,4 @@ -/* $NetBSD: isp_inline.h,v 1.8 2000/08/14 07:06:50 mjacob Exp $ */ +/* $NetBSD: isp_inline.h,v 1.9 2000/08/27 21:43:26 mjacob Exp $ */ /* * This driver, which is contained in NetBSD in the files: * @@ -232,18 +232,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 */ |
