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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Zhao Yakui <yakui.zhao@xxxxxxxxx>

The input parameter of acpi_dump_dynmaic_SSDT is also renamed.

Signed-off-by: Zhao Yakui <yakui.zhao@xxxxxxxxx>
---
 acpidump/acpidump.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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);
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux