Skip to content

Commit

Permalink
ACPICA: Fix a format string for 64-bit generation
Browse files Browse the repository at this point in the history
Fix a warning on 64-bit for a length value. Cast to 32-bit since
the length is related to an ACPI table.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Apr 12, 2013
1 parent 60f3deb commit 475df48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/acpi/acpica/exoparg2.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state)
if (ACPI_FAILURE(status)) {
ACPI_EXCEPTION((AE_INFO, status,
"Index (0x%X%8.8X) is beyond end of object (length 0x%X)",
ACPI_FORMAT_UINT64(index), length));
ACPI_FORMAT_UINT64(index),
(u32)length));
goto cleanup;
}

Expand Down

0 comments on commit 475df48

Please sign in to comment.