[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fwts-devel
Subject:    Re: [PATCH 2/3] bios: bios_info: strip off trailing newlines
From:       Keng-Yu Lin <kengyu () canonical ! com>
Date:       2012-05-31 6:57:03
Message-ID: CADXHx7aci94GUG-iVDzEH=jzi0h8Tg31CS2U3mTJ0gQ8M80a2Q () mail ! gmail ! com
[Download RAW message or body]

On Tue, May 29, 2012 at 9:11 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/bios/bios_info/bios_info.c |      1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/bios/bios_info/bios_info.c b/src/bios/bios_info/bios_info.c
> index d6962a1..786052a 100644
> --- a/src/bios/bios_info/bios_info.c
> +++ b/src/bios/bios_info/bios_info.c
> @@ -60,6 +60,7 @@ static int bios_info_test1(fwts_framework *fw)
>                        snprintf(path, sizeof(path), "/sys/class/dmi/id/%s",
>                                    bios_info[i].dmi_field);
>                        if ((data = fwts_get(path)) != NULL) {
> +                                  fwts_chop_newline(data);
>                                    fwts_log_info_verbatum(fw, "%-18.18s: %s",
>                                                bios_info[i].label, data);
>                                    free(data);
> --
> 1.7.10
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic