summaryrefslogtreecommitdiff
path: root/source/os_specific/service_layers/osunixdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/os_specific/service_layers/osunixdir.c')
-rw-r--r--source/os_specific/service_layers/osunixdir.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/os_specific/service_layers/osunixdir.c b/source/os_specific/service_layers/osunixdir.c
index 58351a64ab10..2e007e94d2a4 100644
--- a/source/os_specific/service_layers/osunixdir.c
+++ b/source/os_specific/service_layers/osunixdir.c
@@ -41,6 +41,7 @@
* POSSIBILITY OF SUCH DAMAGES.
*/
+#include <acpi.h>
#include <stdio.h>
#include <stdlib.h>
@@ -50,8 +51,6 @@
#include <ctype.h>
#include <sys/stat.h>
-#include "acpisrc.h"
-
/*
* Allocated structure returned from OsOpenDirectory
*/
@@ -103,6 +102,7 @@ AcpiOsOpenDirectory (
dir = opendir (DirPathname);
if (!dir)
{
+ fprintf (stderr, "Cannot open directory - %s\n", DirPathname);
free (ExternalInfo);
return (NULL);
}
@@ -157,7 +157,8 @@ AcpiOsGetNextFilename (
temp_str = calloc (str_len, 1);
if (!temp_str)
{
- printf ("Could not allocate buffer for temporary string\n");
+ fprintf (stderr,
+ "Could not allocate buffer for temporary string\n");
return (NULL);
}
@@ -169,7 +170,9 @@ AcpiOsGetNextFilename (
free (temp_str);
if (err == -1)
{
- printf ("stat() error - should not happen\n");
+ fprintf (stderr,
+ "Cannot stat file (should not happen) - %s\n",
+ temp_str);
return (NULL);
}