diff mbox series

acpi: acpitables: add advices for table revision tests

Message ID 20210622174737.1198204-1-alex.hung@canonical.com
State Accepted
Headers show
Series acpi: acpitables: add advices for table revision tests | expand

Commit Message

Alex Hung June 22, 2021, 5:47 p.m. UTC
Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/acpi/acpitables/acpitables.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Colin Ian King June 22, 2021, 6:03 p.m. UTC | #1
On 22/06/2021 18:47, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/acpi/acpitables/acpitables.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/acpi/acpitables/acpitables.c b/src/acpi/acpitables/acpitables.c
> index 67224633..2ecaaa33 100644
> --- a/src/acpi/acpitables/acpitables.c
> +++ b/src/acpi/acpitables/acpitables.c
> @@ -307,6 +307,12 @@ static int acpi_table_check_test2(fwts_framework *fw)
>  
>  	if (!failed)
>  		fwts_passed(fw, "ACPI spec %4.4" PRIx32 " has matched table revisions.", version);
> +	else
> +		fwts_advice(fw,
> +		"In \"ACPI Table Revision Overview\", ASWG suggests \"Conforming to a given ACPI "
> +		"specification means that each and every ACPI-related table conforms to the version "
> +		"number for that table that is listed in that version of the specification.\" "
> +		"Please refer to https://uefi.org/node/4185 for details.");
>  
>  	return FWTS_OK;
>  }
> 
Acked-by: Colin Ian King <colin.king@canonical.com>
Ivan Hu June 28, 2021, 5:44 a.m. UTC | #2
On 6/23/21 1:47 AM, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/acpi/acpitables/acpitables.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/acpi/acpitables/acpitables.c b/src/acpi/acpitables/acpitables.c
> index 67224633..2ecaaa33 100644
> --- a/src/acpi/acpitables/acpitables.c
> +++ b/src/acpi/acpitables/acpitables.c
> @@ -307,6 +307,12 @@ static int acpi_table_check_test2(fwts_framework *fw)
>  
>  	if (!failed)
>  		fwts_passed(fw, "ACPI spec %4.4" PRIx32 " has matched table revisions.", version);
> +	else
> +		fwts_advice(fw,
> +		"In \"ACPI Table Revision Overview\", ASWG suggests \"Conforming to a given ACPI "
> +		"specification means that each and every ACPI-related table conforms to the version "
> +		"number for that table that is listed in that version of the specification.\" "
> +		"Please refer to https://uefi.org/node/4185 for details.");
>  
>  	return FWTS_OK;
>  }
> 

Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff mbox series

Patch

diff --git a/src/acpi/acpitables/acpitables.c b/src/acpi/acpitables/acpitables.c
index 67224633..2ecaaa33 100644
--- a/src/acpi/acpitables/acpitables.c
+++ b/src/acpi/acpitables/acpitables.c
@@ -307,6 +307,12 @@  static int acpi_table_check_test2(fwts_framework *fw)
 
 	if (!failed)
 		fwts_passed(fw, "ACPI spec %4.4" PRIx32 " has matched table revisions.", version);
+	else
+		fwts_advice(fw,
+		"In \"ACPI Table Revision Overview\", ASWG suggests \"Conforming to a given ACPI "
+		"specification means that each and every ACPI-related table conforms to the version "
+		"number for that table that is listed in that version of the specification.\" "
+		"Please refer to https://uefi.org/node/4185 for details.");
 
 	return FWTS_OK;
 }