[01/12] acpi: acpiinfo: use stdint print format specifiers for uint8_t values
diff mbox series

Message ID 20180906142001.28381-2-colin.king@canonical.com
State Accepted
Headers show
Series
  • Fix up print format specifiers
Related show

Commit Message

Colin King Sept. 6, 2018, 2:19 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

Use stdint print format specifiers.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/acpi/acpiinfo/acpiinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alex Hung Sept. 6, 2018, 9:37 p.m. UTC | #1
On 2018-09-06 07:19 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Use stdint print format specifiers.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/acpi/acpiinfo/acpiinfo.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/acpi/acpiinfo/acpiinfo.c b/src/acpi/acpiinfo/acpiinfo.c
> index b96f7b1c..37398e8e 100644
> --- a/src/acpi/acpiinfo/acpiinfo.c
> +++ b/src/acpi/acpiinfo/acpiinfo.c
> @@ -124,7 +124,7 @@ static int acpiinfo_test2(fwts_framework *fw)
>   		minor = fadt->minor_version;
>   
>   	fwts_log_info(fw,
> -		"FACP ACPI Version: %d.%d", major, minor);
> +		"FACP ACPI Version: %" PRIu8 ".%" PRIu8, major, minor);
>   
>   	fwts_infoonly(fw);
>   
> 



Acked-by: Alex Hung <alex.hung@canonical.com>
ivanhu Sept. 10, 2018, 4:21 a.m. UTC | #2
On 09/06/2018 10:19 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Use stdint print format specifiers.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  src/acpi/acpiinfo/acpiinfo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/acpi/acpiinfo/acpiinfo.c b/src/acpi/acpiinfo/acpiinfo.c
> index b96f7b1c..37398e8e 100644
> --- a/src/acpi/acpiinfo/acpiinfo.c
> +++ b/src/acpi/acpiinfo/acpiinfo.c
> @@ -124,7 +124,7 @@ static int acpiinfo_test2(fwts_framework *fw)
>  		minor = fadt->minor_version;
>  
>  	fwts_log_info(fw,
> -		"FACP ACPI Version: %d.%d", major, minor);
> +		"FACP ACPI Version: %" PRIu8 ".%" PRIu8, major, minor);
>  
>  	fwts_infoonly(fw);
>  
Acked-by: Ivan Hu <ivan.hu@canonical.com>

Patch
diff mbox series

diff --git a/src/acpi/acpiinfo/acpiinfo.c b/src/acpi/acpiinfo/acpiinfo.c
index b96f7b1c..37398e8e 100644
--- a/src/acpi/acpiinfo/acpiinfo.c
+++ b/src/acpi/acpiinfo/acpiinfo.c
@@ -124,7 +124,7 @@  static int acpiinfo_test2(fwts_framework *fw)
 		minor = fadt->minor_version;
 
 	fwts_log_info(fw,
-		"FACP ACPI Version: %d.%d", major, minor);
+		"FACP ACPI Version: %" PRIu8 ".%" PRIu8, major, minor);
 
 	fwts_infoonly(fw);