[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 7/7] drivers/acpi: Drop the unneeded casts to unsigned



... and make use of PRIu format specifiers when applicable.

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
---
 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)));
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.