ACK: [PATCH 1/4] lib: fwts_acpi_tables: print correct pathname on error

Alex Hung alex.hung at canonical.com
Wed Apr 29 12:21:24 UTC 2015


On Thu, Apr 23, 2015 at 7:57 PM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> The acpi_table_path should be printed rather than the fw->acpi_table_path
> pathname on an error.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/lib/src/fwts_acpi_tables.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c
> index d3ef6cd..08230f8 100644
> --- a/src/lib/src/fwts_acpi_tables.c
> +++ b/src/lib/src/fwts_acpi_tables.c
> @@ -697,7 +697,7 @@ static int fwts_acpi_load_tables_from_file_generic(
>          */
>         if ((*count = scandir(acpi_table_path, &dir_entries, 0, alphasort)) < 0) {
>                 fwts_log_error(fw, "Cannot open directory '%s' to read ACPI tables.",
> -                       fw->acpi_table_path);
> +                       acpi_table_path);
>                 return FWTS_ERROR;
>         }
>
> --
> 2.1.4
>
>
> --
> fwts-devel mailing list
> fwts-devel at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/fwts-devel

Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list