ACK: [PATCH 03/26] lib: fwts_dump: fix loop variable type to match table length type

Alex Hung alex.hung at canonical.com
Mon Oct 15 02:58:32 UTC 2012


On 10/15/2012 04:31 AM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Ensure the loop variable is of the same type as that of the ACPI
> table length.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/lib/src/fwts_dump.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lib/src/fwts_dump.c b/src/lib/src/fwts_dump.c
> index f14e8f9..fb69376 100644
> --- a/src/lib/src/fwts_dump.c
> +++ b/src/lib/src/fwts_dump.c
> @@ -145,7 +145,7 @@ static int dump_lspci(fwts_framework *fw, const char *path, const char *filename
>   static int dump_acpi_table(fwts_acpi_table_info *table, FILE *fp)
>   {
>   	char buffer[128];
> -	int n;
> +	size_t n;
>
>   	fprintf(fp, "%s @ 0x%x\n", table->name, (uint32_t)table->addr);
>
>
Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list