From 3c3fd352b17fb3e2be17ecb4c41bcaa56ea611c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Wed, 3 Apr 2024 07:29:36 -0700 Subject: [PATCH] intel/tools/error2hangdump: Print out_filename when failed to open it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was printing the in_filename. Reviewed-by: Lionel Landwerlin Signed-off-by: José Roberto de Souza Part-of: --- src/intel/tools/error2hangdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/tools/error2hangdump.c b/src/intel/tools/error2hangdump.c index 72f8761a806..483960cd581 100644 --- a/src/intel/tools/error2hangdump.c +++ b/src/intel/tools/error2hangdump.c @@ -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;