[PATCH] lib: framework: clear the error message with the extra result filename suffix

Ivan Hu ivan.hu at canonical.com
Tue Dec 5 06:48:24 UTC 2023


 BugLink: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/2037502

Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 src/lib/src/fwts_framework.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/src/fwts_framework.c b/src/lib/src/fwts_framework.c
index e10f8764..92a1ca17 100644
--- a/src/lib/src/fwts_framework.c
+++ b/src/lib/src/fwts_framework.c
@@ -1564,10 +1564,11 @@ int fwts_framework_args(const int argc, char **argv)
 			(fw->flags & FWTS_FLAG_FORCE_CLEAN) ? "w" : "a",
 			fw->log_type)) == NULL) {
 		ret = FWTS_ERROR;
-		fprintf(stderr, "%s: Cannot open results log '%s.log'"
+		fprintf(stderr, "%s: Cannot open results log '%s'"
 			" (you may need to remove it to set proper"
 			" permissions).\n",
-			argv[0], fw->results_logname);
+			argv[0],
+			fwts_log_get_filenames(fw->results_logname, fw->log_type));
 		goto tidy_close;
 	}
 
-- 
2.34.1




More information about the fwts-devel mailing list