===================================================================
@@ -315,7 +315,7 @@ static int acpi_dump_SDT(int fd, struct
#define DYNAMIC_SSDT "/sys/firmware/acpi/tables/dynamic"
-static void acpi_dump_dynamic_SSDT(int fd)
+static void acpi_dump_dynamic_SSDT(int out_fd)
{
struct stat file_stat;
char filename[256], *ptr;
@@ -366,8 +366,8 @@ static void acpi_dump_dynamic_SSDT(int f
ptable = (struct acpi_table_header *) ptr;
if (checksum((u8 *) ptable, ptable->length))
fprintf(stderr, "Wrong checksum "
- "for dynamic SSDT table!\n");
- write_table(fd, ptable, 0);
+ "for dynamic SSDT table of %s!\n", filename);
+ write_table(out_fd, ptable, 0);
free(ptr);
}
closedir(tabledir);