From patchwork Wed Nov 13 22:13:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 179356 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp10220411ilf; Wed, 13 Nov 2019 14:25:08 -0800 (PST) X-Google-Smtp-Source: APXvYqy9RYQ1qdVd4GTHB4y3Wo7hIGGek1U8CJzFATrzYch06jaL33rycvnyosATObZzo+tkxMTC X-Received: by 2002:ae9:e851:: with SMTP id a78mr4802946qkg.312.1573683908527; Wed, 13 Nov 2019 14:25:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573683908; cv=none; d=google.com; s=arc-20160816; b=N8cc3VQglPn7vL7CpK8OxxPdY2Vh8qhSXD5GgZ98J0IQWUaBXRI2ER3Hpd1cgDDK5g J0x5weVtQHqEoaZzkmP16D5ktT3D6gl1QT1GhO5svaWoajd925PKMQKuNY/bgEoWCBZb 9lZ9d5ZTzY0Ct5Hc18KYyp4HNU/TNN374m9HWyaNSd7QvUs51VdUo68EnoxQvo45BHzw 5KPpd9MwZjWvRmpE3stvrlfCu0XwvhQTfMUfyStq5KRWyuT/x8xdpwO1oJlUFZQCBhQD Wtd+Pv1goR1w5Xb5F25rt2ZBSqZc1DY7nzX8wfaefPlk+eF9P41S/oUGGzAGMla/f8hS ac7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=8TuERMwKIX0IjYAYBvRG+/eE8by9a0Ql/FHpjEAjdkQ=; b=xKZNt0Aba6AkhaeHIL9akZd0mTQdnbd354t/To84kjLHHeUuEUTNnvPFXLDo64Prxw kogoyQMpQQ7V1X14QjVU5UOtMRcSAma0obaQaEW5usN8hiqjZxZQrGfnMw9pWy8jyjDK DryXi5jcoys+wK3mjffFe/OuX0amUfGeK1Pf0TDYrLDyE1pIbHShPfX6n5kL306QbRt6 p67DSXCY2I+dzf4ykKYdVv6d4BG8kcbst/qAMC/1mEYuga4Ok1eVw/SZgWVwmqfIIC+F oka0RlLEbTsoX+64eWAyEOch/VuimWd3sMfXPxh0nlB40jHxnsHjnMa8RJsuAxEvw2VD FBtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RkaX2O2K; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u50si2260707qtb.239.2019.11.13.14.25.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Nov 2019 14:25:08 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RkaX2O2K; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:51784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV14V-000837-UL for patch@linaro.org; Wed, 13 Nov 2019 17:25:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34865) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV0tE-0001pX-Cf for qemu-devel@nongnu.org; Wed, 13 Nov 2019 17:13:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iV0tD-0001FI-4l for qemu-devel@nongnu.org; Wed, 13 Nov 2019 17:13:28 -0500 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:33576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iV0tA-0001Bs-Qc; Wed, 13 Nov 2019 17:13:25 -0500 Received: by mail-pl1-x641.google.com with SMTP id ay6so1669897plb.0; Wed, 13 Nov 2019 14:13:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8TuERMwKIX0IjYAYBvRG+/eE8by9a0Ql/FHpjEAjdkQ=; b=RkaX2O2KL449KlwuavPI5G3WFShvPSTM220WZKzvW+dJG+PEJT2rW0Xtzr/MLxpVYF 3X7dH1TNU79qU5/f2jRBWhs9z+Oz/vi3y/S5XpmZNDJfLo1PssI6oTQkwElHL/AMDpSV G+Xc4O9U/wW3Q0Dq+fQta/OFWLnO/5X4gN3vH92HZ8LG0WpvhdAkIZvdCax7hz68ef+j si0MEVK9piF2FgBjPz56iG45PweJ9JsM3kPnuEGPnDVd1lUoNdToDUPRhz8pY5+URkY4 HXiH1XbLLK8gZEWAPc47e+FWG2vpKdL07T8E57kRbiyH8pkUSqkQAY6t64qzmPx8vBBt IEmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8TuERMwKIX0IjYAYBvRG+/eE8by9a0Ql/FHpjEAjdkQ=; b=mAw7l+A42OKeGN3L1QZP9V7Kut0JBZiooKPh/ifk+7hjOdzMzVdAExxGyx2vsYWTCU XG83GXKio0TDKlTZKb0gA4ilC05215n4y73H0UgKLGyzmnsutuBqUT6AwV7c4WFRV1M4 cHRCAnPvE8L1Izx7zJNoLiKDaDp1iRd9s4nBMdprKYIDEqp82pAvNT87zqKh5F9jRk2q KQRm7Nh5PwcagityMSmeVhAkK4nA/abx/E5QfwiPZYFJTpK1LlFvgnJVzikstt6wFi7K ctURP6ExD4OWWCAYYTs618GEhOhRSb53AeMNbANFmJw7CmecRicgUZ/UzOapdxRhYEik v+uA== X-Gm-Message-State: APjAAAVjyMOtYx5zY8d+DJ7pd+R3rty3Vd+dCecXuxWddBMNiyhSPdLX c57bB6Jg/CIautubnqj73Es= X-Received: by 2002:a17:902:82c7:: with SMTP id u7mr5770045plz.31.1573683203708; Wed, 13 Nov 2019 14:13:23 -0800 (PST) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id w69sm5252005pfc.164.2019.11.13.14.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 14:13:23 -0800 (PST) From: Joel Stanley To: Peter Maydell , =?utf-8?q?C=C3=A9dric_Le_Goa?= =?utf-8?q?ter?= Subject: [PATCH v3 3/4] watchdog/aspeed: Improve watchdog timeout message Date: Thu, 14 Nov 2019 08:43:00 +1030 Message-Id: <20191113221301.8768-4-joel@jms.id.au> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113221301.8768-1-joel@jms.id.au> References: <20191113221301.8768-1-joel@jms.id.au> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::641 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , qemu-arm@nongnu.org, =?utf-8?q?Alex_?= =?utf-8?q?Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 --- v2: Use HWADDR_PRIx v3: Fix spacing --- hw/watchdog/wdt_aspeed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.24.0 diff --git a/hw/watchdog/wdt_aspeed.c b/hw/watchdog/wdt_aspeed.c index 145be6f99ce2..d283d07d6546 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); }