mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
lib: use a critical warning when unable to open a data file
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -1751,5 +1751,10 @@ FILE *__igt_fopen_data(const char* igt_srcdir, const char* igt_datadir,
|
||||
snprintf(path, sizeof(path), "%s/%s", igt_srcdir, filename);
|
||||
fp = fopen(path, "r");
|
||||
}
|
||||
|
||||
if (!fp)
|
||||
igt_critical("Could not open data file \"%s\": %s", filename,
|
||||
strerror(errno));
|
||||
|
||||
return fp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user