summaryrefslogtreecommitdiffstats
path: root/powercap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'powercap.cpp')
-rw-r--r--powercap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/powercap.cpp b/powercap.cpp
index f2ae331..4c0c330 100644
--- a/powercap.cpp
+++ b/powercap.cpp
@@ -132,7 +132,7 @@ void PowerCap::writeOcc(uint32_t pcapValue)
auto pcapString {std::to_string(pcapValue)};
log<level::INFO>("Writing pcap value to hwmon",
- entry("PCAP_PATH=%s",*fileName),
+ entry("PCAP_PATH=%s",fileName->c_str()),
entry("PCAP_VALUE=%s",pcapString.c_str()));
// Open the hwmon file and write the power cap
std::ofstream file(*fileName, std::ios::out);
OpenPOWER on IntegriCloud