ACPI: fix printk format warnings
authorRandy Dunlap <rdunlap@xenotime.net>
Tue, 10 Oct 2006 21:20:32 +0000 (14:20 -0700)
committerLen Brown <len.brown@intel.com>
Sat, 14 Oct 2006 05:59:46 +0000 (01:59 -0400)
Fix printk format warnings in drivers/acpi:
drivers/acpi/tables/tbget.c:326: warning: format '%X' expects type 'unsigned int', but argument 5 has type 'long unsigned int'
drivers/acpi/tables/tbrsdt.c:189: warning: format '%X' expects type 'unsigned int', but argument 5 has type 'long unsigned int'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/tables/tbget.c
drivers/acpi/tables/tbrsdt.c

index 7856db759af0be7579abcd1733e74d1782455dbe..11e2d4454e053f6ece5f8d6aab31e5b6491e8f0a 100644 (file)
@@ -324,7 +324,7 @@ acpi_tb_get_this_table(struct acpi_pointer *address,
 
        if (header->length < sizeof(struct acpi_table_header)) {
                ACPI_ERROR((AE_INFO,
-                           "Table length (%X) is smaller than minimum (%X)",
+                           "Table length (%X) is smaller than minimum (%zX)",
                            header->length, sizeof(struct acpi_table_header)));
 
                return_ACPI_STATUS(AE_INVALID_TABLE_LENGTH);
index 0ad3dbb9ebca377563a6a177ab092704f63545f8..86a5fca9b739de2b9d42344dc6c5406c55f17f73 100644 (file)
@@ -187,7 +187,7 @@ acpi_status acpi_tb_validate_rsdt(struct acpi_table_header *table_ptr)
 
        if (table_ptr->length < sizeof(struct acpi_table_header)) {
                ACPI_ERROR((AE_INFO,
-                           "RSDT/XSDT length (%X) is smaller than minimum (%X)",
+                           "RSDT/XSDT length (%X) is smaller than minimum (%zX)",
                            table_ptr->length,
                            sizeof(struct acpi_table_header)));