[igt-dev] [PATCH i-g-t] lib: Add missing newline in igt_fopen_data's logging

Dixit, Ashutosh ashutosh.dixit at intel.com
Fri May 13 15:24:13 UTC 2022


On Fri, 13 May 2022 02:53:00 -0700, Petri Latvala wrote:
>
> Also drive-by, change %s strerror(errno) to the equivalent %m.

Hmm didn't know about this one :)

Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>

> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> ---
>  lib/igt_core.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/lib/igt_core.c b/lib/igt_core.c
> index 6dad3c84..ba906ab0 100644
> --- a/lib/igt_core.c
> +++ b/lib/igt_core.c
> @@ -2929,8 +2929,7 @@ FILE *__igt_fopen_data(const char* igt_srcdir, const char* igt_datadir,
>	}
>
>	if (!fp)
> -		igt_critical("Could not open data file \"%s\": %s", filename,
> -			     strerror(errno));
> +		igt_critical("Could not open data file \"%s\": %m\n", filename);
>
>	return fp;
>  }
> --
> 2.30.2
>


More information about the igt-dev mailing list