Skip to content

Commit

Permalink
ACPI: fix printk format warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Len Brown committed Oct 14, 2006
1 parent 7af8b66 commit a790b32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/acpi/tables/tbget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/acpi/tables/tbrsdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down

0 comments on commit a790b32

Please sign in to comment.