|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] acpi: drop the unneeded casts to unsigned
commit 8c99264c6746541ddbfd7afec533e6ad1c8c41a5
Author: Michal Orzel <michal.orzel@xxxxxxx>
AuthorDate: Tue Jun 28 17:26:04 2022 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jun 28 17:26:04 2022 +0200
acpi: drop the unneeded casts to unsigned
... and make use of PRIu format specifiers when applicable.
Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/drivers/acpi/tables/tbfadt.c | 6 +++---
xen/drivers/acpi/tables/tbutils.c | 1 -
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/xen/drivers/acpi/tables/tbfadt.c b/xen/drivers/acpi/tables/tbfadt.c
index f11fd5a900..d8fcc50dec 100644
--- a/xen/drivers/acpi/tables/tbfadt.c
+++ b/xen/drivers/acpi/tables/tbfadt.c
@@ -233,9 +233,9 @@ void __init acpi_tb_create_local_fadt(struct
acpi_table_header *table, u32 lengt
*/
if (length > sizeof(struct acpi_table_fadt)) {
ACPI_WARNING((AE_INFO,
- "FADT (revision %u) is longer than ACPI 5.0
version,"
- " truncating length %u to %zu",
- table->revision, (unsigned)length,
+ "FADT (revision %"PRIu8") is longer than ACPI 5.0
version,"
+ " truncating length %"PRIu32" to %zu",
+ table->revision, length,
sizeof(struct acpi_table_fadt)));
}
diff --git a/xen/drivers/acpi/tables/tbutils.c
b/xen/drivers/acpi/tables/tbutils.c
index d135a50ff9..11412c47de 100644
--- a/xen/drivers/acpi/tables/tbutils.c
+++ b/xen/drivers/acpi/tables/tbutils.c
@@ -481,7 +481,6 @@ acpi_tb_parse_root_table(acpi_physical_address
rsdp_address, u8 flags)
if (ACPI_FAILURE(status)) {
ACPI_WARNING((AE_INFO,
"Truncating %u table entries!",
- (unsigned)
(acpi_gbl_root_table_list.size -
acpi_gbl_root_table_list.
count)));
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |