Commit a790b323fb1b73f9388426bf3b96f153d1c90d2c

Authored by Randy Dunlap
Committed by Len Brown
1 parent 7af8b66004

ACPI: fix printk format warnings

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/acpi/tables/tbget.c
... ... @@ -324,7 +324,7 @@
324 324  
325 325 if (header->length < sizeof(struct acpi_table_header)) {
326 326 ACPI_ERROR((AE_INFO,
327   - "Table length (%X) is smaller than minimum (%X)",
  327 + "Table length (%X) is smaller than minimum (%zX)",
328 328 header->length, sizeof(struct acpi_table_header)));
329 329  
330 330 return_ACPI_STATUS(AE_INVALID_TABLE_LENGTH);
drivers/acpi/tables/tbrsdt.c
... ... @@ -187,7 +187,7 @@
187 187  
188 188 if (table_ptr->length < sizeof(struct acpi_table_header)) {
189 189 ACPI_ERROR((AE_INFO,
190   - "RSDT/XSDT length (%X) is smaller than minimum (%X)",
  190 + "RSDT/XSDT length (%X) is smaller than minimum (%zX)",
191 191 table_ptr->length,
192 192 sizeof(struct acpi_table_header)));
193 193