Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix isp_print_qentry to print all four lines- it'...



details:   https://anonhg.NetBSD.org/src/rev/6a5700b322a4
branches:  trunk
changeset: 504419:6a5700b322a4
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Fri Mar 02 04:51:14 2001 +0000

description:
Fix isp_print_qentry to print all four lines- it's been broken for months.

diffstat:

 sys/dev/ic/isp_inline.h |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e35f97feca4e -r 6a5700b322a4 sys/dev/ic/isp_inline.h
--- a/sys/dev/ic/isp_inline.h   Fri Mar 02 04:26:10 2001 +0000
+++ b/sys/dev/ic/isp_inline.h   Fri Mar 02 04:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_inline.h,v 1.11 2001/02/12 23:29:26 mjacob Exp $ */
+/* $NetBSD: isp_inline.h,v 1.12 2001/03/02 04:51:14 mjacob Exp $ */
 /*
  * This driver, which is contained in NetBSD in the files:
  *
@@ -207,14 +207,15 @@
        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



Home | Main Index | Thread Index | Old Index