Src/GPUPerfAPI-Common/Logging.h
void LogDebugError(const char* pMsgFmt, ...)
    {
#ifdef AMDT_INTERNAL

        // if the supplied message type is among those that the user wants be notified of,
        // then pass the message along.
        if (GPA_LOG_DEBUG_ERROR & m_loggingDebugType)
        {
            EnterCriticalSection(&m_hLock);

            // Format string
            char buffer[1024 * 50];
            va_list arglist;
            va_start(arglist, pMsgFmt);
#ifdef WIN32
            vsprintf_s(buffer, pMsgFmt, arglist);
#else
            vsprintf(buffer, pMsgFmt, arglist);
#endif
            va_end(arglist);

            Log(GPA_LOG_DEBUG_ERROR, buffer);

            LeaveCriticalSection(&m_hLock);
        }

#else
        UNREFERENCED_PARAMETER(pMsgFmt);
#endif // AMDT_INTERNAL
    }
/// Logs a formatted error message in debug builds; does nothing in release.
/// \param pMsgFmt the message to format and pass along
Logs a formatted error message in debug builds; does nothing in release.
\param pMsgFmt the message to format and pass along
Logs a formatted error message in debug builds ; does nothing in release . \ param pMsgFmt the message to format and pass along
void LogDebugError(const char* pMsgFmt, ...)
    {
#ifdef AMDT_INTERNAL
        if (GPA_LOG_DEBUG_ERROR & m_loggingDebugType)
        {
            EnterCriticalSection(&m_hLock);
            char buffer[1024 * 50];
            va_list arglist;
            va_start(arglist, pMsgFmt);
#ifdef WIN32
            vsprintf_s(buffer, pMsgFmt, arglist);
#else
            vsprintf(buffer, pMsgFmt, arglist);
#endif
            va_end(arglist);
            Log(GPA_LOG_DEBUG_ERROR, buffer);
            LeaveCriticalSection(&m_hLock);
        }
#else
        UNREFERENCED_PARAMETER(pMsgFmt);
#endif 
    }
void LogDebugError ( const char * pMsgFmt , ... ) { #ifdef AMDT_INTERNAL if ( GPA_LOG_DEBUG_ERROR & m_loggingDebugType ) { EnterCriticalSection ( & m_hLock ) ; char buffer [ 1024 * 50 ] ; va_list arglist ; va_start ( arglist , pMsgFmt ) ; #ifdef WIN32 vsprintf_s ( buffer , pMsgFmt , arglist ) ; #else vsprintf ( buffer , pMsgFmt , arglist ) ; #endif va_end ( arglist ) ; Log ( GPA_LOG_DEBUG_ERROR , buffer ) ; LeaveCriticalSection ( & m_hLock ) ; } #else UNREFERENCED_PARAMETER ( pMsgFmt ) ; #endif }
Logs a formatted error message in debug builds; does nothing in release.
Logs a formatted error message in debug builds ; does nothing in release .
// if the supplied message type is among those that the user wants be notified of, // then pass the message along. // Format string // AMDT_INTERNAL