aboutsummaryrefslogtreecommitdiff
path: root/hw/watchdog
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2019-11-19 15:12:02 +0100
committerPeter Maydell <peter.maydell@linaro.org>2019-12-16 10:46:34 +0000
commitaabf1de4b7a2fb14797946f8eb970d391cecf0d8 (patch)
treee20e453b8a92d2afef00e4f760e753ab3c7c44d6 /hw/watchdog
parent310b5bc69213684b5c2429494c04b3300d9a3150 (diff)
downloadqemu-aabf1de4b7a2fb14797946f8eb970d391cecf0d8.zip
qemu-aabf1de4b7a2fb14797946f8eb970d391cecf0d8.tar.gz
qemu-aabf1de4b7a2fb14797946f8eb970d391cecf0d8.tar.bz2
watchdog/aspeed: Improve watchdog timeout message
Users benefit from knowing which watchdog timer has expired. The address of the watchdog's registers unambiguously indicates which has expired, so log that. Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-id: 20191119141211.25716-9-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/watchdog')
-rw-r--r--hw/watchdog/wdt_aspeed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/watchdog/wdt_aspeed.c b/hw/watchdog/wdt_aspeed.c
index 145be6f..d283d07 100644
--- a/hw/watchdog/wdt_aspeed.c
+++ b/hw/watchdog/wdt_aspeed.c
@@ -219,7 +219,8 @@ static void aspeed_wdt_timer_expired(void *dev)
return;
}
- qemu_log_mask(CPU_LOG_RESET, "Watchdog timer expired.\n");
+ qemu_log_mask(CPU_LOG_RESET, "Watchdog timer %" HWADDR_PRIx " expired.\n",
+ s->iomem.addr);
watchdog_perform_action();
timer_del(s->timer);
}