mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Fix isp_print_qentry to print all four lines- it's been broken for months.
This commit is contained in:
parent
6e5801f1af
commit
715ec7e9a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73311
@ -179,14 +179,15 @@ isp_print_qentry(isp, msg, idx, arg)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user