ACK: [PATCH 26/27] coreboot: clog: rename list 'clog' to avoid name shadowing

ivanhu ivan.hu at canonical.com
Thu Aug 16 09:21:23 UTC 2018



On 08/15/2018 09:11 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Rename the list 'clog' to 'clog_list' to avoid name shadowing
> confusion with various functions that use clog as an argument
> too.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/coreboot/clog/clog.c | 11 +++++------
>  1 file changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/src/coreboot/clog/clog.c b/src/coreboot/clog/clog.c
> index 5feca313..6f5e38ce 100644
> --- a/src/coreboot/clog/clog.c
> +++ b/src/coreboot/clog/clog.c
> @@ -25,7 +25,7 @@
>  #include <sys/stat.h>
>  #include <unistd.h>
>  
> -static fwts_list *clog;
> +static fwts_list *clog_list;
>  
>  static int clog_init(fwts_framework *fw)
>  {
> @@ -34,9 +34,8 @@ static int clog_init(fwts_framework *fw)
>  		return FWTS_SKIP;
>  	}
>  
> -	clog = fwts_clog_read(fw);
> -
> -	if (clog == NULL) {
> +	clog_list = fwts_clog_read(fw);
> +	if (clog_list == NULL) {
>  		fwts_log_error(fw, "Cannot read coreboot log.");
>  		return FWTS_ERROR;
>  	}
> @@ -47,7 +46,7 @@ static int clog_deinit(fwts_framework *fw)
>  {
>  	FWTS_UNUSED(fw);
>  
> -	fwts_clog_free(clog);
> +	fwts_clog_free(clog_list);
>  
>  	return FWTS_OK;
>  }
> @@ -61,7 +60,7 @@ static int clog_test1(fwts_framework *fw)
>  {
>  	int errors = 0;
>  
> -	if (fwts_clog_firmware_check(fw, clog_progress, clog, &errors)) {
> +	if (fwts_clog_firmware_check(fw, clog_progress, clog_list, &errors)) {
>  		fwts_log_error(fw, "Error parsing coreboot log.");
>  		return FWTS_ERROR;
>  	}

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/20180816/95844832/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/20180816/95844832/attachment-0001.sig>


More information about the fwts-devel mailing list