mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
intel_gpu_dump: Mention filename in error message
This helps for when the user makes a typo trying to pass a file or directory name to intel_gpu_dump.
This commit is contained in:
parent
660a20f611
commit
0a820610ee
@ -1962,8 +1962,11 @@ main (int argc, char *argv[])
|
|||||||
} else {
|
} else {
|
||||||
path = argv[1];
|
path = argv[1];
|
||||||
err = stat(path, &st);
|
err = stat(path, &st);
|
||||||
if (err != 0)
|
if (err != 0) {
|
||||||
errx(1, "Couldn't stat the file or directory\n");
|
fprintf (stderr, "Error opening %s: %s\n",
|
||||||
|
path, strerror (errno));
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (S_ISDIR(st.st_mode)) {
|
if (S_ISDIR(st.st_mode)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user