ACK: [PATCH 05/12] acpi: checksum: print size_t values using %zd specifier

ivanhu ivan.hu at canonical.com
Mon Sep 10 04:27:07 UTC 2018



On 09/06/2018 10:19 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/acpi/checksum/checksum.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/acpi/checksum/checksum.c b/src/acpi/checksum/checksum.c
> index f475c4e5..8ac019a8 100644
> --- a/src/acpi/checksum/checksum.c
> +++ b/src/acpi/checksum/checksum.c
> @@ -67,10 +67,10 @@ static void checksum_rsdp(fwts_framework *fw, fwts_acpi_table_info *table)
>  		if (table->length < sizeof(fwts_acpi_table_rsdp)) {
>  			fwts_failed(fw, LOG_LEVEL_CRITICAL,
>  				"ACPITableCheckSumShortRSDP",
> -				"RSDP was expected to be %d bytes long, "
> -				"got a shortened size of %d bytes.",
> -				(int)sizeof(fwts_acpi_table_rsdp),
> -				(int)table->length);
> +				"RSDP was expected to be %zd bytes long, "
> +				"got a shortened size of %zd bytes.",
> +				sizeof(fwts_acpi_table_rsdp),
> +				table->length);
>  			/* Won't test on a short RSDP */
>  			return;
>  		}

Acked-by: Ivan Hu <ivan.hu at canonical.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180910/5934ebf6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180910/5934ebf6/attachment.sig>


More information about the fwts-devel mailing list