summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-05-07 07:46:12 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-05-23 15:18:00 +0800
commitdca4d1a2ce920544b8158d7a5d359d41a6d35330 (patch)
treea2b3abda86a33f5b67ef4c31f889a5d205e926ca /arch
parent5cb0f0dc88f816a08003a06cef8bd5310425e573 (diff)
downloadu-boot-imx-dca4d1a2ce920544b8158d7a5d359d41a6d35330.zip
u-boot-imx-dca4d1a2ce920544b8158d7a5d359d41a6d35330.tar.gz
u-boot-imx-dca4d1a2ce920544b8158d7a5d359d41a6d35330.tar.bz2
x86: acpi: Fix compiler warnings in write_acpi_tables()
Fix the following two build warnings in function 'write_acpi_tables': warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u32' [-Wformat=] Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de> Tested-by: Stefan Roese <sr@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/lib/acpi_table.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
index 790f6fb..9873cb3 100644
--- a/arch/x86/lib/acpi_table.c
+++ b/arch/x86/lib/acpi_table.c
@@ -50,7 +50,7 @@ static void acpi_add_table(struct acpi_rsdp *rsdp, void *table)
}
if (i >= entries_num) {
- debug("ACPI: Error: too many tables.\n");
+ debug("ACPI: Error: too many tables\n");
return;
}
@@ -353,7 +353,7 @@ u32 write_acpi_tables(u32 start)
/* Align ACPI tables to 16byte */
current = ALIGN(current, 16);
- debug("ACPI: Writing ACPI tables at %lx.\n", start);
+ debug("ACPI: Writing ACPI tables at %x\n", start);
/* We need at least an RSDP and an RSDT Table */
rsdp = (struct acpi_rsdp *)current;
@@ -432,9 +432,9 @@ u32 write_acpi_tables(u32 start)
current = ALIGN(current, 16);
}
- debug("current = %lx\n", current);
+ debug("current = %x\n", current);
- debug("ACPI: done.\n");
+ debug("ACPI: done\n");
return current;
}