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

[Xen-ia64-devel] [PATCH] Print ACPI signature before overwriting it



Here's another trivial patch.  We're printing out the ACPI table
signature after we overwrite it with "OEMx".  Let's print it out before
so we know that the table was.  Also limit print to 4 chars so we don't
get garbage output.

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
--

diff -r 7c2bc0cd57c5 xen/arch/ia64/xen/dom_fw_dom0.c
--- a/xen/arch/ia64/xen/dom_fw_dom0.c   Fri Aug 08 08:50:10 2008 -0600
+++ b/xen/arch/ia64/xen/dom_fw_dom0.c   Fri Aug 08 09:37:11 2008 -0600
@@ -154,6 +154,8 @@ acpi_restore_tables()
 
 static int __init __acpi_table_disable(struct acpi_table_header *header)
 {
+       printk("Disabling ACPI table: %4.4s\n", header->signature);
+
        memcpy(header->oem_id, "xxxxxx", 6);
        memcpy(header->oem_id+1, header->signature, 4);
        memcpy(header->oem_table_id, "Xen     ", 8);
@@ -161,7 +163,6 @@ static int __init __acpi_table_disable(s
        header->checksum = 0;
        header->checksum = -acpi_tb_checksum((u8*)header, header->length);
 
-       printk("Successfully Disabling %s\n", header->signature);
        return 0;
 }
 



_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.