[PATCH i-g-t v3 2/5] lib: Add more debug messages to error paths

Janusz Krzysztofik janusz.krzysztofik at linux.intel.com
Thu Jul 18 08:51:07 UTC 2024


On Wednesday, 17 July 2024 14:26:13 GMT+2 Janusz Krzysztofik wrote:
>         while (dir >= 0 && (path = va_arg(ap, const char *))) {
>                 int fd;
>  
> -               fd = openat(dir, path, O_RDONLY);
> +               igt_debug_on_f((fd = openat(dir, path, O_RDONLY)) < 0,
> +                              "failed component: %s", path);
                                                    ^^^^^
Missing newline, sorry.

Please expect new version.

Thanks,
Janusz

>                 close(dir);
>  
>                 dir = fd;






More information about the igt-dev mailing list