From patchwork Wed Jan 5 01:35:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, Yakui" X-Patchwork-Id: 452571 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p051YfuV015310 for ; Wed, 5 Jan 2011 01:34:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750954Ab1AEBej (ORCPT ); Tue, 4 Jan 2011 20:34:39 -0500 Received: from mga09.intel.com ([134.134.136.24]:32664 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751065Ab1AEBej (ORCPT ); Tue, 4 Jan 2011 20:34:39 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 04 Jan 2011 17:34:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,275,1291622400"; d="scan'208";a="693636551" Received: from yakui_zhao.sh.intel.com (HELO localhost.localdomain) ([10.239.36.12]) by orsmga001.jf.intel.com with ESMTP; 04 Jan 2011 17:34:38 -0800 From: yakui.zhao@intel.com To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, Zhao Yakui Subject: [Patch 1/3] Pmtools: Complain the table name of dynamic SSDT table with wrong checksum Date: Wed, 5 Jan 2011 09:35:31 +0800 Message-Id: <1294191333-7381-2-git-send-email-yakui.zhao@intel.com> X-Mailer: git-send-email 1.5.4.5 In-Reply-To: <1294191333-7381-1-git-send-email-yakui.zhao@intel.com> References: <1294191333-7381-1-git-send-email-yakui.zhao@intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 05 Jan 2011 01:34:41 +0000 (UTC) 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);