ACK: [PATCH 04/12] acpi: apicinstance: use correct format specifiers

ivanhu ivan.hu at canonical.com
Mon Sep 10 04:26:35 UTC 2018



On 09/06/2018 10:19 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Don't use casting but instead use the correct format specifiers
> to print values.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/acpi/apicinstance/apicinstance.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/acpi/apicinstance/apicinstance.c b/src/acpi/apicinstance/apicinstance.c
> index d6609239..557166f9 100644
> --- a/src/acpi/apicinstance/apicinstance.c
> +++ b/src/acpi/apicinstance/apicinstance.c
> @@ -39,10 +39,10 @@ static int apicinstance_test1(fwts_framework *fw)
>  			break;
>  
>  		if (strcmp(table->name, "APIC") == 0)  {
> -			fwts_log_info(fw, "Found APIC/MADT table %s @ %llx, length 0x%d",
> +			fwts_log_info(fw, "Found APIC/MADT table %s @ %" PRIx64 ", length 0x%zx",
>  				table->name,
> -				(unsigned long long)table->addr,
> -				(int)table->length);
> +				table->addr,
> +				table->length);
>  			if (first_madt_table == NULL)
>  				first_madt_table = table;
>  			else {
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/08534ca6/attachment-0001.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/08534ca6/attachment-0001.sig>


More information about the fwts-devel mailing list