From 5a09880620c0d974273011d3b7d6add697320e20 Mon Sep 17 00:00:00 2001 From: Amber Lin Date: Mon, 30 Sep 2019 14:29:39 -0400 Subject: [PATCH] libhsakmt: fix typo in error message When fail to get CPU dirs from //sys/devices/system/node/nodeX directory, the error message should print node_dir, not path. Change-Id: If76a51918c8dd55fa6605a62f3d29f9efc6fadb3 Signed-off-by: Amber Lin --- src/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topology.c b/src/topology.c index 6f1e490a78..327315429a 100644 --- a/src/topology.c +++ b/src/topology.c @@ -1193,7 +1193,7 @@ static int topology_create_temp_cpu_cache_list(int node, /* Other than cpuY folders, this dir also has cpulist and cpumap */ max_cpus = num_subdirs(node_dir, "cpu"); if (max_cpus <= 0) { - pr_err("Fail to get cpu* dirs under %s\n", path); + pr_err("Fail to get cpu* dirs under %s\n", node_dir); goto exit; }