summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-01-23 21:16:22 -0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-01-29 18:19:59 +0000
commit539f56069b07f39413789fa9ae4c7085fbc092b4 (patch)
treeaf0948a31fbf0bc2dba5d212960516eb905addf8
parent8728491a0043bb67bdabdf27ffb8db89d930b88a (diff)
downloadphosphor-watchdog-539f56069b07f39413789fa9ae4c7085fbc092b4.tar.gz
phosphor-watchdog-539f56069b07f39413789fa9ae4c7085fbc092b4.zip
watchdog: Log watchdog updates for debug
Change-Id: Ida0a2f58e128d037fdbb5d94259f1637be67d8ae Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r--watchdog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/watchdog.cpp b/watchdog.cpp
index d0dc7f0..8d5cbbe 100644
--- a/watchdog.cpp
+++ b/watchdog.cpp
@@ -79,6 +79,9 @@ uint64_t Watchdog::timeRemaining(uint64_t value)
// Disable the timer
timer.setEnabled<std::false_type>();
+ log<level::DEBUG>("watchdog: update time remaining",
+ entry("INTERVAL=%llu", value));
+
// Timer handles all in microseconds and hence converting
auto usec = duration_cast<microseconds>(
milliseconds(value));
OpenPOWER on IntegriCloud