From 47a9ec4ee9b05a9794a09d16762e3ef7318c5489 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Thu, 18 Apr 2019 15:42:16 -0700 Subject: watchdog: Log timer use during expiration Change-Id: Ie6dd1da92ffc225a313db208455ad24f4787a990 Signed-off-by: William A. Kennington III --- watchdog.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/watchdog.cpp b/watchdog.cpp index d529746..bc3ba95 100644 --- a/watchdog.cpp +++ b/watchdog.cpp @@ -101,19 +101,23 @@ void Watchdog::timeOutHandler() action = fallback->action; } - WatchdogInherits::expiredTimerUse(WatchdogInherits::currentTimerUse()); + expiredTimerUse(currentTimerUse()); auto target = actionTargetMap.find(action); if (target == actionTargetMap.end()) { log("watchdog: Timed out with no target", - entry("ACTION=%s", convertForMessage(action).c_str())); + entry("ACTION=%s", convertForMessage(action).c_str()), + entry("TIMER_USE=%s", + convertForMessage(expiredTimerUse()).c_str())); } else { - log("watchdog: Timed out", - entry("ACTION=%s", convertForMessage(action).c_str()), - entry("TARGET=%s", target->second.c_str())); + log( + "watchdog: Timed out", + entry("ACTION=%s", convertForMessage(action).c_str()), + entry("TIMER_USE=%s", convertForMessage(expiredTimerUse()).c_str()), + entry("TARGET=%s", target->second.c_str())); try { -- cgit v1.2.3