From: Joel Stanley Date: Tue, 19 Nov 2019 14:12:02 +0000 (+0100) Subject: watchdog/aspeed: Improve watchdog timeout message X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=aabf1de4b7a2fb14797946f8eb970d391cecf0d8;p=qmiga%2Fqemu.git 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 Reviewed-by: Alex Bennée Signed-off-by: Joel Stanley Signed-off-by: Cédric Le Goater Message-id: 20191119141211.25716-9-clg@kaod.org Signed-off-by: Peter Maydell --- diff --git a/hw/watchdog/wdt_aspeed.c b/hw/watchdog/wdt_aspeed.c index 145be6f99c..d283d07d65 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); }