acpi: drop the unneeded casts to unsigned
authorMichal Orzel <michal.orzel@arm.com>
Tue, 28 Jun 2022 15:26:04 +0000 (17:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 28 Jun 2022 15:26:04 +0000 (17:26 +0200)
... and make use of PRIu format specifiers when applicable.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/acpi/tables/tbfadt.c
xen/drivers/acpi/tables/tbutils.c

index f11fd5a900268f98e59b165432199cb40e2c24bc..d8fcc50deca532106d6775f7a2e31b8d07756984 100644 (file)
@@ -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)));
        }
 
index d135a50ff923af577dc8b28f378d276c2b576445..11412c47deb4cd13cbd1666f3903644ca76e373a 100644 (file)
@@ -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)));