blob: 494e8b44ca0aac97c2c971d2c1d35b8fdc56dddb [file] [log] [blame]
xdc_runtime_Error_Block xdc_runtime_Error_IgnoreBlock = {
~0U, /* unused */
{
{0, 0} /* data */
},
0, /* id */
0, /* msg */
{
0, /* mod */
0, /* file */
0 /* line */
}
};
/*
* ======== Error_policyLog ========
*/
Void xdc_runtime_Error_policyLog__I(xdc_runtime_Types_ModuleId mod, CString file,
Int line, CString msg, IArg arg1, IArg arg2)
{
% if (this.policyFxn == "&xdc_runtime_Error_policyDefault__E") {
//% if (xdc.module("ti.sysbios.BIOS").logsEnabled) {
% if (xdc.module("xdc.runtime.Log").$used) {
/*
* Log the error, now that we've retrieved the error message.
*
* We call Log_put here instead of Log_write so that we can log the
* caller's module id instead of the Error module's id.
*
* In logging this event, we'll use the Error module's mask and logger. We
* don't have a way to reliably access the caller's diags mask and logger.
* The caller isn't guaranteed to have a mask on the target, even if they
* are performing logging.
*/
#undef Module__DGSINCL
#undef Module__DGSENAB
#undef Module__DGSMASK
#define Module__DGSINCL xdc_runtime_Error_Module__diagsIncluded__C
#define Module__DGSENAB xdc_runtime_Error_Module__diagsEnabled__C
#define Module__DGSMASK xdc_runtime_Error_Module__diagsMask__C
if (xdc_runtime_Diags_query(xdc_runtime_Log_L_error)) {
xdc_runtime_Log_put8(xdc_runtime_Log_L_error, mod, (IArg) file, line,
(IArg) msg, arg1, arg2, 0, 0, 0);
}
% }
% }
}