intel/tools/error2hangdump: Print out_filename when failed to open it

It was printing the in_filename.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28720>
This commit is contained in:
José Roberto de Souza 2024-04-03 07:29:36 -07:00 committed by Marge Bot
parent 3279abd494
commit 3c3fd352b1

View file

@ -358,7 +358,7 @@ main(int argc, char *argv[])
fail_if(!err_file, "Failed to open error file \"%s\": %m\n", in_filename);
FILE *hang_file = fopen(out_filename, "w");
fail_if(!hang_file, "Failed to open aub file \"%s\": %m\n", in_filename);
fail_if(!hang_file, "Failed to open aub file \"%s\": %m\n", out_filename);
enum address_space active_gtt = PPGTT;
enum address_space default_gtt = PPGTT;