diff options
Diffstat (limited to 'source/components/executer/exdebug.c')
| -rw-r--r-- | source/components/executer/exdebug.c | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/source/components/executer/exdebug.c b/source/components/executer/exdebug.c index df61b7988da10..5b13d19dca4fb 100644 --- a/source/components/executer/exdebug.c +++ b/source/components/executer/exdebug.c @@ -82,6 +82,7 @@ AcpiExDoDebugObject (      UINT32                  Index)  {      UINT32                  i; +    UINT32                  Timer;      ACPI_FUNCTION_TRACE_PTR (ExDoDebugObject, SourceDesc); @@ -96,12 +97,20 @@ AcpiExDoDebugObject (      }      /* +     * We will emit the current timer value (in microseconds) with each +     * debug output. Only need the lower 26 bits. This allows for 67 +     * million microseconds or 67 seconds before rollover. +     */ +    Timer = ((UINT32) AcpiOsGetTimer () / 10); /* (100 nanoseconds to microseconds) */ +    Timer &= 0x03FFFFFF; + +    /*       * Print line header as long as we are not in the middle of an       * object display       */      if (!((Level > 0) && Index == 0))      { -        AcpiOsPrintf ("[ACPI Debug] %*s", Level, " "); +        AcpiOsPrintf ("[ACPI Debug %.8u] %*s", Timer, Level, " ");      }      /* Display the index for package output only */  | 
