/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
* Defaults
*/
int eib_log_timestamps = 0;
/*
* Debug variables, should not be tunables so allocated debug buffer
* and its size remain consistent.
*/
/*
* Local declarations
*/
static void eib_log(char *);
void
eib_debug_init(void)
{
eib_debug_buf_ndx = 0;
}
void
eib_debug_fini(void)
{
if (eib_debug_buf && eib_debug_buf_sz) {
}
eib_debug_buf_sz = 0;
eib_debug_buf_ndx = 0;
}
void
{
int msglen;
if (eib_debug_buf == NULL)
return;
if (eib_log_timestamps) {
(unsigned long long)ddi_get_lbolt64(), msg);
} else {
}
if (msglen < 0)
return;
else if (msglen >= EIB_MAX_LINE)
if ((eib_debug_buf_ndx == 0) ||
}
eib_debug_buf_ndx = 0;
}
#ifdef EIB_DEBUG
void
{
int msglen;
return;
if (msglen > 0) {
}
}
void
{
char *bufp;
uint_t i;
return;
while (sz >= 16) {
"eoib%02d__%02x %02x %02x %02x %02x %02x %02x %02x "
"%02x %02x %02x %02x %02x %02x %02x %02x\n", inst,
p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7],
p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]);
p += 16;
sz -= 16;
}
len = EIB_MAX_LINE;
for (i = 0; i < sz; i++) {
if (i == 0) {
inst, p[i]);
len -= 11;
bufp += 11;
} else if (i < (sz - 1)) {
len -= 3;
bufp += 3;
} else {
len -= 3;
bufp += 3;
}
}
}
void
{
int msglen;
return;
if (msglen > 0) {
}
}
void
{
int msglen;
return;
if (msglen > 0) {
}
}
#endif
void
{
int msglen;
return;
if (msglen > 0) {
}
}
void
{
int msglen;
return;
if (msglen > 0) {
}
}
void
{
int msglen;
return;
if (msglen > 0) {
}
}