From 213ac660dd8e5b70a75990e790ee3bcb21c2ab4d Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Mon, 4 Nov 2024 15:29:43 +0100 Subject: [PATCH] hwgraph: Fixing error message When hwgraph find an unsupported engine, it prints a message. This message is using the engine module name as the engine name making a confusing output. This commit use the engine name instead of the engine module. Signed-off-by: Erwan Velu --- graph/trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/trace.py b/graph/trace.py index 36fb7ae..86e04a9 100644 --- a/graph/trace.py +++ b/graph/trace.py @@ -201,7 +201,7 @@ def prepare_perf_metrics(self) -> tuple[list, str]: em = self.engine_module() # Preparing the performance metric to graph if self.engine() not in ["stressng", "sleep"]: - fatal(f"Unsupported {em} engine") + fatal(f"Unsupported {self.engine()} engine") if self.engine() == "stressng": if em in ["cpu", "qsort", "vnni"]: perf_list = ["bogo ops/s"]