All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Orzel <michal.orzel@arm.com>
To: xen-devel@lists.xenproject.org
Cc: Jan Beulich <jbeulich@suse.com>
Subject: [PATCH 7/7] drivers/acpi: Drop the unneeded casts to unsigned
Date: Mon, 27 Jun 2022 15:15:43 +0200	[thread overview]
Message-ID: <20220627131543.410971-8-michal.orzel@arm.com> (raw)
In-Reply-To: <20220627131543.410971-1-michal.orzel@arm.com>

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

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
---
 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



  parent reply	other threads:[~2022-06-27 13:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 13:15 [PATCH 0/7] xen/arm: use unsigned int instead of plain unsigned Michal Orzel
2022-06-27 13:15 ` [PATCH 1/7] xen/arm: Use " Michal Orzel
2022-06-27 13:25   ` Julien Grall
2022-06-27 13:15 ` [PATCH 2/7] xen/domain: " Michal Orzel
2022-06-27 13:22   ` Jan Beulich
2022-06-27 13:15 ` [PATCH 3/7] xen/common: " Michal Orzel
2022-06-27 13:22   ` Jan Beulich
2022-06-27 14:13   ` Juergen Gross
2022-06-29 10:46   ` Michal Orzel
2022-06-29 10:52     ` Julien Grall
2022-07-05 12:07       ` Bertrand Marquis
2022-07-05 12:50         ` Julien Grall
2022-06-27 13:15 ` [PATCH 4/7] include/xen: " Michal Orzel
2022-06-27 13:23   ` Jan Beulich
2022-06-27 13:15 ` [PATCH 5/7] include/public: Use uint32_t instead of unsigned (int) Michal Orzel
2022-06-27 13:24   ` Jan Beulich
2022-06-27 13:15 ` [PATCH 6/7] xsm/flask: Use unsigned int instead of plain unsigned Michal Orzel
2022-06-27 13:26   ` Jan Beulich
2022-06-27 19:19   ` Daniel P. Smith
2022-06-28  6:28     ` Michal Orzel
2022-06-27 13:15 ` Michal Orzel [this message]
2022-06-27 13:27   ` [PATCH 7/7] drivers/acpi: Drop the unneeded casts to unsigned Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220627131543.410971-8-michal.orzel@arm.com \
    --to=michal.orzel@arm.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.