Update CPU hwmon searching path to sync with kernel path
This commit updates searching path of CPU hwmon sensors to sync
with the kernel change.
Change-Id: Ia52ccfbdacb6684a04b0bb531861e0fe509c34fd
Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
diff --git a/sensors/src/CPUSensorMain.cpp b/sensors/src/CPUSensorMain.cpp
index 65fad1b..cc9fb91 100644
--- a/sensors/src/CPUSensorMain.cpp
+++ b/sensors/src/CPUSensorMain.cpp
@@ -109,7 +109,7 @@
std::vector<fs::path> oemNamePaths;
if (!find_files(fs::path(R"(/sys/bus/peci/devices)"),
- R"(peci\d+/\d+-.+/of_node/oemname1$)", oemNamePaths, 2))
+ R"(peci-\d+/\d+-.+/of_node/oemname1$)", oemNamePaths, 2))
{
std::cerr << "No CPU sensors in system\n";
return true;