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

Petri Latvala petri.latvala at intel.com
Fri May 13 09:53:00 UTC 2022


Also drive-by, change %s strerror(errno) to the equivalent %m.

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