本文整理汇总了C++中AcpiOsVprintf函数的典型用法代码示例。如果您正苦于以下问题:C++ AcpiOsVprintf函数的具体用法?C++ AcpiOsVprintf怎么用?C++ AcpiOsVprintf使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了AcpiOsVprintf函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AcpiInfo
void ACPI_INTERNAL_VAR_XFACE
AcpiInfo (
const char *ModuleName,
UINT32 LineNumber,
const char *Format,
...)
{
va_list ArgList;
#ifdef _KERNEL
/* Temporarily hide too verbose printfs. */
if (!bootverbose)
return;
#endif
ACPI_MSG_REDIRECT_BEGIN;
AcpiOsPrintf (ACPI_MSG_INFO);
va_start (ArgList, Format);
AcpiOsVprintf (Format, ArgList);
AcpiOsPrintf ("\n");
va_end (ArgList);
ACPI_MSG_REDIRECT_END;
}
示例2: AcpiUtPredefinedBiosError
void ACPI_INTERNAL_VAR_XFACE
AcpiUtPredefinedBiosError (
const char *ModuleName,
UINT32 LineNumber,
char *Pathname,
UINT8 NodeFlags,
const char *Format,
...)
{
va_list ArgList;
/*
* Warning messages for this method/object will be disabled after the
* first time a validation fails or an object is successfully repaired.
*/
if (NodeFlags & ANOBJ_EVALUATED)
{
return;
}
AcpiOsPrintf (ACPI_MSG_BIOS_ERROR "%s: ", Pathname);
va_start (ArgList, Format);
AcpiOsVprintf (Format, ArgList);
ACPI_MSG_SUFFIX;
va_end (ArgList);
}
示例3: AcpiException
void ACPI_INTERNAL_VAR_XFACE
AcpiException (
const char *ModuleName,
UINT32 LineNumber,
ACPI_STATUS Status,
const char *Format,
...)
{
va_list ArgList;
ACPI_MSG_REDIRECT_BEGIN;
/* For AE_OK, just print the message */
if (ACPI_SUCCESS (Status))
{
AcpiOsPrintf (ACPI_MSG_EXCEPTION);
}
else
{
AcpiOsPrintf (ACPI_MSG_EXCEPTION "%s, ", AcpiFormatException (Status));
}
va_start (ArgList, Format);
AcpiOsVprintf (Format, ArgList);
ACPI_MSG_SUFFIX;
va_end (ArgList);
ACPI_MSG_REDIRECT_END;
}
示例4: AcpiOsPrintf
void ACPI_INTERNAL_VAR_XFACE
AcpiOsPrintf (const char *Fmt, ...)
{
va_list args;
va_start(args, Fmt);
AcpiOsVprintf(Fmt, args);
va_end(args);
}
示例5: AcpiDebugPrint
void ACPI_INTERNAL_VAR_XFACE
AcpiDebugPrint (
UINT32 RequestedDebugLevel,
UINT32 LineNumber,
const char *FunctionName,
const char *ModuleName,
UINT32 ComponentId,
const char *Format,
...)
{
ACPI_THREAD_ID ThreadId;
va_list args;
/*
* Stay silent if the debug level or component ID is disabled
*/
if (!(RequestedDebugLevel & AcpiDbgLevel) ||
!(ComponentId & AcpiDbgLayer))
{
return;
}
/*
* Thread tracking and context switch notification
*/
ThreadId = AcpiOsGetThreadId ();
if (ThreadId != AcpiGbl_PrevThreadId)
{
if (ACPI_LV_THREADS & AcpiDbgLevel)
{
AcpiOsPrintf (
"\n**** Context Switch from TID %u to TID %u ****\n\n",
(UINT32) AcpiGbl_PrevThreadId, (UINT32) ThreadId);
}
AcpiGbl_PrevThreadId = ThreadId;
}
/*
* Display the module name, current line number, thread ID (if requested),
* current procedure nesting level, and the current procedure name
*/
AcpiOsPrintf ("%8s-%04ld ", ModuleName, LineNumber);
if (ACPI_LV_THREADS & AcpiDbgLevel)
{
AcpiOsPrintf ("[%u] ", (UINT32) ThreadId);
}
AcpiOsPrintf ("[%02ld] %-22.22s: ",
AcpiGbl_NestingLevel, AcpiUtTrimFunctionName (FunctionName));
va_start (args, Format);
AcpiOsVprintf (Format, args);
va_end (args);
}
示例6: AcpiOsPrintf
void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf(const char *Format, ...) {
va_list args;
PRINTD("AcpiOsPrintf() called");
va_start(args, Format);
AcpiOsVprintf(Format, args);
va_end(args);
}
示例7: AcpiUtDebugPrint
void
AcpiUtDebugPrint (
UINT32 RequestedDebugLevel,
UINT32 LineNumber,
ACPI_DEBUG_PRINT_INFO *DbgInfo,
char *Format,
...)
{
UINT32 ThreadId;
va_list args;
/*
* Stay silent if the debug level or component ID is disabled
*/
if (!(RequestedDebugLevel & AcpiDbgLevel) ||
!(DbgInfo->ComponentId & AcpiDbgLayer))
{
return;
}
/*
* Thread tracking and context switch notification
*/
ThreadId = AcpiOsGetThreadId ();
if (ThreadId != AcpiGbl_PrevThreadId)
{
if (ACPI_LV_THREADS & AcpiDbgLevel)
{
AcpiOsPrintf ("\n**** Context Switch from TID %X to TID %X ****\n\n",
AcpiGbl_PrevThreadId, ThreadId);
}
AcpiGbl_PrevThreadId = ThreadId;
}
/*
* Display the module name, current line number, thread ID (if requested),
* current procedure nesting level, and the current procedure name
*/
AcpiOsPrintf ("%8s-%04d ", DbgInfo->ModuleName, LineNumber);
if (ACPI_LV_THREADS & AcpiDbgLevel)
{
AcpiOsPrintf ("[%04X] ", ThreadId, AcpiGbl_NestingLevel, DbgInfo->ProcName);
}
AcpiOsPrintf ("[%02d] %-22.22s: ", AcpiGbl_NestingLevel, DbgInfo->ProcName);
va_start (args, Format);
AcpiOsVprintf (Format, args);
}
示例8: AcpiOsActualPrintf
void ACPI_INTERNAL_VAR_XFACE
AcpiOsActualPrintf (
const char *Fmt,
...)
{
va_list Args;
va_start (Args, Fmt);
AcpiOsVprintf (Fmt, Args);
va_end (Args);
return;
}
示例9: AcpiOsPrintf
void ACPI_INTERNAL_VAR_XFACE
AcpiOsPrintf (
const char *Fmt,
...)
{
va_list Args;
va_start (Args, Fmt);
#ifdef ACPI_BF_DEBUG
AcpiOsVprintf (Fmt, Args);
#endif
va_end (Args);
return;
}
示例10: AcpiInfo
void ACPI_INTERNAL_VAR_XFACE
AcpiInfo (
const char *Format,
...)
{
va_list ArgList;
ACPI_MSG_REDIRECT_BEGIN;
AcpiOsPrintf (ACPI_MSG_INFO);
va_start (ArgList, Format);
AcpiOsVprintf (Format, ArgList);
AcpiOsPrintf ("\n");
va_end (ArgList);
ACPI_MSG_REDIRECT_END;
}
示例11: AcpiWarning
void ACPI_INTERNAL_VAR_XFACE
AcpiWarning (
const char *ModuleName,
UINT32 LineNumber,
const char *Format,
...)
{
va_list ArgList;
ACPI_MSG_REDIRECT_BEGIN;
AcpiOsPrintf (ACPI_MSG_WARNING);
va_start (ArgList, Format);
AcpiOsVprintf (Format, ArgList);
ACPI_MSG_SUFFIX;
va_end (ArgList);
ACPI_MSG_REDIRECT_END;
}
示例12: AcpiUtDebugPrintRaw
void
AcpiUtDebugPrintRaw (
UINT32 RequestedDebugLevel,
UINT32 LineNumber,
ACPI_DEBUG_PRINT_INFO *DbgInfo,
char *Format,
...)
{
va_list args;
if (!(RequestedDebugLevel & AcpiDbgLevel) ||
!(DbgInfo->ComponentId & AcpiDbgLayer))
{
return;
}
va_start (args, Format);
AcpiOsVprintf (Format, args);
}
示例13: AcpiUtDebugPrintRaw
void ACPI_INTERNAL_VAR_XFACE
AcpiUtDebugPrintRaw (
UINT32 RequestedDebugLevel,
UINT32 LineNumber,
const char *FunctionName,
char *ModuleName,
UINT32 ComponentId,
char *Format,
...)
{
va_list args;
if (!(RequestedDebugLevel & AcpiDbgLevel) ||
!(ComponentId & AcpiDbgLayer))
{
return;
}
va_start (args, Format);
AcpiOsVprintf (Format, args);
}
示例14: AcpiOsPrintf
void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf( const char * format, ... )
{
va_list args;
if( __ACPI_LoggingEnabled == false )
{
return;
}
va_start( args, format );
if( __ACPI_LoggingFunction == NULL )
{
AcpiOsVprintf( format, args );
}
else
{
__ACPI_LoggingFunction( format, args );
}
va_end( args );
}
示例15: AcpiDebugPrintRaw
void ACPI_INTERNAL_VAR_XFACE
AcpiDebugPrintRaw (
UINT32 RequestedDebugLevel,
UINT32 LineNumber,
const char *FunctionName,
const char *ModuleName,
UINT32 ComponentId,
const char *Format,
...)
{
va_list args;
/* Check if debug output enabled */
if (!ACPI_IS_DEBUG_ENABLED (RequestedDebugLevel, ComponentId))
{
return;
}
va_start (args, Format);
AcpiOsVprintf (Format, args);
va_end (args);
}