當前位置: 首頁>>代碼示例>>C++>>正文


C++ AcpiOsVprintf函數代碼示例

本文整理匯總了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;
}
開發者ID:BillTheBest,項目名稱:libuinet,代碼行數:25,代碼來源:utxferror.c

示例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);
}
開發者ID:9elements,項目名稱:fwts,代碼行數:28,代碼來源:uterror.c

示例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;
}
開發者ID:JamesLinus,項目名稱:ChaiOS,代碼行數:31,代碼來源:utxferror.c

示例4: AcpiOsPrintf

void ACPI_INTERNAL_VAR_XFACE
AcpiOsPrintf (const char *Fmt, ...)
{
  va_list args;

  va_start(args, Fmt);
  AcpiOsVprintf(Fmt, args);
  va_end(args);
}
開發者ID:B-Rich,項目名稱:EBBlib,代碼行數:9,代碼來源:osebbosxf.c

示例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);
}
開發者ID:ksashtekar,項目名稱:Ganoid,代碼行數:57,代碼來源:utdebug.c

示例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);
}
開發者ID:AleksandraButrova,項目名稱:embox,代碼行數:9,代碼來源:osemboxxf.c

示例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);
}
開發者ID:MarginC,項目名稱:kame,代碼行數:55,代碼來源:utdebug.c

示例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;
}
開發者ID:minggr,項目名稱:acpica,代碼行數:15,代碼來源:oswinxf.c

示例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;
}
開發者ID:Stichting-MINIX-Research-Foundation,項目名稱:minix,代碼行數:17,代碼來源:osminixxf.c

示例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;
}
開發者ID:ahs3,項目名稱:acpica-tools,代碼行數:18,代碼來源:utxferror.c

示例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;
}
開發者ID:BillTheBest,項目名稱:libuinet,代碼行數:20,代碼來源:utxferror.c

示例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);
}
開發者ID:MarginC,項目名稱:kame,代碼行數:21,代碼來源:utdebug.c

示例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);
}
開發者ID:andreiw,項目名稱:polaris,代碼行數:22,代碼來源:utdebug.c

示例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 );
}
開發者ID:Jyang772,項目名稱:XEOS,代碼行數:22,代碼來源:AcpiOsPrintf.c

示例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);
}
開發者ID:coyizumi,項目名稱:cs111,代碼行數:24,代碼來源:utdebug.c


注:本文中的AcpiOsVprintf函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。