Skip to content
Snippets Groups Projects
Commit dca4d1a2 authored by Bin Meng's avatar Bin Meng
Browse files

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: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Tested-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 5cb0f0dc
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment