ACK: [PATCH] kernel:version: change ACPI version to ACPICA version

ivanhu ivan.hu at canonical.com
Wed May 8 11:58:41 UTC 2019


On 5/7/19 7:05 AM, Alex Hung wrote:
> The version read from /sys/module/acpi/parameters/acpica_version is not
> ACPI version. The supported ACPI version is implemented in acpiinfo_test1.
>
> This patch also fixes some incorrect indentation.
>
> Signed-off-by: Alex Hung <alex.hung at canonical.com>
> ---
>  src/kernel/version/version.c | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/src/kernel/version/version.c b/src/kernel/version/version.c
> index 81d686d0..316711e5 100644
> --- a/src/kernel/version/version.c
> +++ b/src/kernel/version/version.c
> @@ -26,7 +26,7 @@ static int version_test1(fwts_framework *fw)
>  	fwts_release *release;
>  
>  	release = fwts_release_get();
> -        if (release) {
> +	if (release) {
>  		bool not_ubuntu = strcmp(release->distributor, "Ubuntu");
>  
>  		fwts_release_free(release);
> @@ -35,7 +35,7 @@ static int version_test1(fwts_framework *fw)
>  			fwts_skipped(fw, "Information not available with this kernel.");
>  			return FWTS_OK;
>  		}
> -        }
> +	}
>  
>  	if ((str = fwts_get("/proc/version_signature")) == NULL)
>  		fwts_skipped(fw,
> @@ -56,7 +56,6 @@ static int version_test2(fwts_framework *fw)
>  {
>  	char *str;
>  
> -
>  	if ((str = fwts_get("/proc/version")) == NULL)
>  		fwts_log_info(fw, "Cannot get version info from /proc/version");
>  	else {
> @@ -90,7 +89,7 @@ static int version_test4(fwts_framework *fw)
>  {
>  	char *str;
>  
> -        if (((str = fwts_get("/sys/module/acpi/parameters/acpica_version")) == NULL) &&
> +	if (((str = fwts_get("/sys/module/acpi/parameters/acpica_version")) == NULL) &&
>  	    ((str = fwts_get("/proc/acpi/info")) == NULL))
>  		fwts_log_info(fw,
>  			"Cannot get ACPI version info from "
> @@ -98,7 +97,7 @@ static int version_test4(fwts_framework *fw)
>  			"or /proc/acpi/info, system does not have ACPI.");
>  	else {
>  		fwts_chop_newline(str);
> -		fwts_log_info(fw, "ACPI Version: %s", str);
> +		fwts_log_info(fw, "ACPICA Version: %s", str);
>  		free(str);
>  	}
>  	fwts_infoonly(fw);


Acked-by: Ivan Hu <ivan.hu at canonical.com>


-------------- 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/20190508/1de4e849/attachment.sig>


More information about the fwts-devel mailing list