diff mbox

[1/3] Pmtools: Complain the table name of dynamic SSDT table with wrong checksum

Message ID 1294191333-7381-2-git-send-email-yakui.zhao@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhao, Yakui Jan. 5, 2011, 1:35 a.m. UTC
None
diff mbox

Patch

Index: pmtools/acpidump/acpidump.c
===================================================================
--- pmtools.orig/acpidump/acpidump.c
+++ pmtools/acpidump/acpidump.c
@@ -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);