nge_log.c revision 6f3e57ac9d0b054c3169579f3422080b8ba10105
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* This file may contain confidential information of Nvidia
* and should not be distributed in source form without approval
* from Sun Legal.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "nge.h"
/*
* Global variable for default debug flags
*/
/*
* Global mutex used by logging routines below
*/
/*
* Static data used by logging routines; protected by <nge_log_mutex>
*/
static struct {
const char *who;
const char *fmt;
int level;
} nge_log_data;
/*
* Backend print routine for all the routines below
*/
static void
{
char buf[128];
}
/*
* Log a run-time event (CE_NOTE, log only)
*/
void
{
}
/*
* Log a run-time problem (CE_WARN, log only)
*/
void
{
}
/*
* Log a programming error (CE_WARN, log only)
*/
void
{
}
static const char *
{
const char *msg;
switch (class_id) {
default:
msg = "none";
break;
case NGE_HW_ERR:
msg = "Hardware fatal error. Hardware will be reset";
break;
case NGE_HW_LINK:
msg = "the link is broken, please check the connection";
break;
case NGE_HW_BM:
msg = "Reset the hardware buffer management fails,"
break;
case NGE_HW_RCHAN:
"on system";
break;
case NGE_HW_TCHAN:
"on system";
break;
case NGE_HW_ROM:
msg = "Unlock eeprom lock fails.";
break;
case NGE_SW_PROBLEM_ID:
msg = "Refill rx's bd fails";
break;
}
return (msg);
}
void
{
const char *err_msg;
}
static void
{
}
void
{
return (nge_prt);
}
void
{
return (nge_prt);
}