mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
- Fix print format for FreeBSD-4
- Reduce debug message.
This commit is contained in:
parent
0f0314e578
commit
9a7d0adfaa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108877
@ -2031,19 +2031,24 @@ SBP_DEBUG(1)
|
||||
#if __FreeBSD_version >= 500000
|
||||
printf(", %tx:%zd", segments[i].ds_addr,
|
||||
#else
|
||||
printf(", %x:%zd", segments[i].ds_addr,
|
||||
printf(", %x:%d", segments[i].ds_addr,
|
||||
#endif
|
||||
segments[i].ds_len);
|
||||
printf("\n");
|
||||
END_DEBUG
|
||||
for (i = 0; i < seg; i++) {
|
||||
s = &segments[i];
|
||||
#if 1 /* XXX LSI Logic "< 16 byte" bug might be hit */
|
||||
SBP_DEBUG(0)
|
||||
/* XXX LSI Logic "< 16 byte" bug might be hit */
|
||||
if (s->ds_len < 16)
|
||||
printf("sbp_execute_ocb: warning, "
|
||||
#if __FreeBSD_version >= 500000
|
||||
"segment length(%zd) is less than 16."
|
||||
"(seg=%d/%d)\n", s->ds_len, i+1, seg);
|
||||
#else
|
||||
"segment length(%d) is less than 16."
|
||||
#endif
|
||||
"(seg=%d/%d)\n", s->ds_len, i+1, seg);
|
||||
END_DEBUG
|
||||
ocb->ind_ptr[i].hi = htonl(s->ds_len << 16);
|
||||
ocb->ind_ptr[i].lo = htonl(s->ds_addr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user