deps/acpica/source/components/debugger/dbhistry.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDbDisplayHistory
 *
 * PARAMETERS:  None
 *
 * RETURN:      None
 *
 * DESCRIPTION: Display the contents of the history buffer
 *
 ******************************************************************************/


None

Display the contents of the history buffer
None Display the contents of the history buffer
void
AcpiDbDisplayHistory (
    void)
{
    UINT32                  i;
    UINT16                  HistoryIndex;
    HistoryIndex = AcpiGbl_LoHistory;
    for (i = 0; i < AcpiGbl_NumHistory; i++)
    {
        if (AcpiGbl_HistoryBuffer[HistoryIndex].Command)
        {
            AcpiOsPrintf ("%3ld  %s\n",
                AcpiGbl_HistoryBuffer[HistoryIndex].CmdNum,
                AcpiGbl_HistoryBuffer[HistoryIndex].Command);
        }
        HistoryIndex++;
        if (HistoryIndex >= HISTORY_SIZE)
        {
            HistoryIndex = 0;
        }
    }
}
void AcpiDbDisplayHistory ( void ) { UINT32 i ; UINT16 HistoryIndex ; HistoryIndex = AcpiGbl_LoHistory ; for ( i = 0 ; i < AcpiGbl_NumHistory ; i ++ ) { if ( AcpiGbl_HistoryBuffer [ HistoryIndex ] . Command ) { AcpiOsPrintf ( " \n " , AcpiGbl_HistoryBuffer [ HistoryIndex ] . CmdNum , AcpiGbl_HistoryBuffer [ HistoryIndex ] . Command ) ; } HistoryIndex ++ ; if ( HistoryIndex >= HISTORY_SIZE ) { HistoryIndex = 0 ; } } }
FUNCTION:    AcpiDbDisplayHistory
 PARAMETERS:  None
FUNCTION : AcpiDbDisplayHistory PARAMETERS : None
/* Dump entire history buffer */