diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-08-01 21:20:41 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-08-01 21:20:41 +0000 |
| commit | 8bc6ab62dbdb3e8b0d2253e0440f6f58ac9afd3d (patch) | |
| tree | b2316b6fda5368bb277671853a71b2a758582b05 /source/components/debugger | |
| parent | 4d46bb7749ef0cf25eb2b25f2d7324023cb754b4 (diff) | |
Notes
Diffstat (limited to 'source/components/debugger')
| -rw-r--r-- | source/components/debugger/dbfileio.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/source/components/debugger/dbfileio.c b/source/components/debugger/dbfileio.c index e90a138e5c88..6e97689c0ff1 100644 --- a/source/components/debugger/dbfileio.c +++ b/source/components/debugger/dbfileio.c @@ -46,15 +46,15 @@ #include "accommon.h" #include "acdebug.h" #include "actables.h" -#include <stdio.h> -#ifdef ACPI_APPLICATION -#include "acapps.h" -#endif #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbfileio") +#ifdef ACPI_APPLICATION +#include "acapps.h" + + #ifdef ACPI_DEBUGGER /******************************************************************************* * @@ -73,8 +73,6 @@ AcpiDbCloseDebugFile ( void) { -#ifdef ACPI_APPLICATION - if (AcpiGbl_DebugFile) { fclose (AcpiGbl_DebugFile); @@ -83,7 +81,6 @@ AcpiDbCloseDebugFile ( AcpiOsPrintf ("Debug output file %s closed\n", AcpiGbl_DbDebugFilename); } -#endif } @@ -104,8 +101,6 @@ AcpiDbOpenDebugFile ( char *Name) { -#ifdef ACPI_APPLICATION - AcpiDbCloseDebugFile (); AcpiGbl_DebugFile = fopen (Name, "w+"); if (!AcpiGbl_DebugFile) @@ -118,8 +113,6 @@ AcpiDbOpenDebugFile ( strncpy (AcpiGbl_DbDebugFilename, Name, sizeof (AcpiGbl_DbDebugFilename)); AcpiGbl_DbOutputToFile = TRUE; - -#endif } #endif @@ -169,8 +162,7 @@ AcpiDbLoadTables ( return (Status); } - fprintf (stderr, - "Acpi table [%4.4s] successfully installed and loaded\n", + AcpiOsPrintf ("Acpi table [%4.4s] successfully installed and loaded\n", Table->Signature); TableListHead = TableListHead->Next; @@ -178,3 +170,4 @@ AcpiDbLoadTables ( return (AE_OK); } +#endif |
