add isp_print_qentry inline function

This commit is contained in:
Matt Jacob 2000-01-03 22:14:24 +00:00
parent 41593b2586
commit f38e1372e5

View File

@ -273,4 +273,27 @@ isp_getrqentry(isp, iptrp, optrp, resultp)
*iptrp = iptr;
return (0);
}
static INLINE void
isp_print_qentry __P((struct ispsoftc *, char *, int, void *));
static INLINE void
isp_print_qentry(isp, msg, idx, arg)
struct ispsoftc *isp;
char *msg;
int idx;
void *arg;
{
int amt, i, j;
u_int8_t *ptr = arg;
PRINTF("%s %s index %d:\n ", isp->isp_name, msg, idx);
for (amt = i = 0; i < 4; i++) {
for (j = 0; j < (QENTRY_LEN >> 2); j++) {
PRINTF(" %02x", ptr[amt++] & 0xff);
}
printf("\n ");
}
PRINTF("\n");
}
#endif /* _ISP_INLINE_H */