aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBob Moore2013-04-12 00:25:35 +0000
committerRafael J. Wysocki2013-04-12 13:29:47 +0200
commit475df486f5191ce0671b99aff029b38bff7a72f1 (patch)
treecf0567470a22abbc7691fbf4d95f3053055fb4fb /drivers
parent60f3deb54f413404f3aa1190e48b154481413a39 (diff)
ACPICA: Fix a format string for 64-bit generation
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/acpica/exoparg2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/exoparg2.c b/drivers/acpi/acpica/exoparg2.c
index 4a34d6d53370..b0838a4ea53e 100644
--- a/drivers/acpi/acpica/exoparg2.c
+++ b/drivers/acpi/acpica/exoparg2.c
@@ -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;
}