[IA64] Print ACPI signature before overwriting it
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 11 Aug 2008 01:59:39 +0000 (10:59 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 11 Aug 2008 01:59:39 +0000 (10:59 +0900)
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@hp.com>
xen/arch/ia64/xen/dom_fw_dom0.c

index 383845f3d4172a4342ca2a5bd8b33218bf66f7fc..91ec3bb1a74af79bef01d99484b40f002a4a50b5 100644 (file)
@@ -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(struct acpi_table_header *header)
        header->checksum = 0;
        header->checksum = -acpi_tb_checksum((u8*)header, header->length);
 
-       printk("Successfully Disabling %s\n", header->signature);
        return 0;
 }