Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1763999imm; Fri, 6 Jul 2018 06:10:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdumIPbmVs6At7vZp0rhY8A3DeNYU0NCHkDRVXe6IvauF59k8eLUO07+55t52ASIFUB12sD X-Received: by 2002:a65:5c83:: with SMTP id a3-v6mr9432465pgt.164.1530882600443; Fri, 06 Jul 2018 06:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530882600; cv=none; d=google.com; s=arc-20160816; b=gDUpHHT5cOtAJA9SEtYIaeeUU0By26ZDrJ5QC/W1wThYwS8YxrcCGF+5ZqoWqvaw4i hoEnlpLVApyp6HoSWNxTpsIEuDQm7QSbUHjMryk5p+JaIndN/9+1ua1tQNNjzBBK2O1A ryAXX3AAFBQX3xwvK3mlMv8uFqA/aG5/87JtzkC7HZ+SyIED/MDc00ua3LUjGPSqWPp7 EVf4faVJkrRQJpfLOk37Fig8c1b5HYz1E6XPdItAT5ro7HtWbjvxpgMEitD3O6OlLKbP wn/zE5Ndu8Vn0JeFR1FCNys5U6deXb1JpqUuUhHmd8U5wEJreA492eacxLqydbiF/vSV KpOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Ftq1080aXc/JhiteENcbMRqIZL2weLRpnJHeOh+TPpo=; b=RPr9Ah03OcSplyXE/CS2lXwO1gX7BcQs+bBh9e7zDsYdGaBlJyEUcf72BISNc2CbGh VBbFwrP7y+r4oUW23BYGZjdE7THE4RLgE31IXYAiYsck5ncuAvdQnj8pfdj0w7aO5t/X 7jRWbz94+UVuWjr4nAmeNmNpphh1bI0BQ+JDsJg8130Ctb8Zo6EX50/CT22hEHQ+GvYl uJV9H94G0MBIJprrhdjlImjF9eibD/4SKokqXYR+fJoa27bdMSjlG+khMYSQ80Iklebr xrMfWuxXfDSkkFXtJ8uzwNONIxbdbvphaJ1lZeq0gSCfbc3QzSw4LsDcPNzbdnJ0mV4L 2hkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f5ooQJad; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si8102761plf.383.2018.07.06.06.09.45; Fri, 06 Jul 2018 06:10:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f5ooQJad; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933362AbeGFNIP (ORCPT + 99 others); Fri, 6 Jul 2018 09:08:15 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52370 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932995AbeGFNIN (ORCPT ); Fri, 6 Jul 2018 09:08:13 -0400 Received: by mail-wm0-f66.google.com with SMTP id w16-v6so14778686wmc.2 for ; Fri, 06 Jul 2018 06:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Ftq1080aXc/JhiteENcbMRqIZL2weLRpnJHeOh+TPpo=; b=f5ooQJadafYSWjE6Fl3I2XvZB/H2WuZPFJMgvw7abXRrFNcxH4TK9CJmR/jg/YYigU Q8Na+zHl0fVER680wafm2bZbW/VEOepqNO1Gv7zoVIhKVDipHY9PbCcmQHs2llXRDivJ AUlVFMoCX2qZ5c2onW2OxjIdYW7tdvPgGCzns= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ftq1080aXc/JhiteENcbMRqIZL2weLRpnJHeOh+TPpo=; b=DLiBOoXDSZLiEguRHF9cTjkew6Ba5pScfaq63q0+U2UBlNmMZsgUWAsjivUa+hBcsv RFxAZG/ZumWV+i8LO0mFm3E7MoKucHMN6qg8ZagDlvW2mlLVxDpyLU21ln7FkL6yZvzQ NL4mbJZOf9p3cTK/CJwkqoVeIWvNRWGMwTQetUMTVxJFo1Pje3ANkas1BIZBmPoz1lyB mkZX11V2nehzUl5Aq1ljj8gujSSbX4Dzw1853OEzr2O9TBtkpu/ye4V433gaq6yA5T1a sMUq2pDmiC/c/FEQybYqPng49hM2gBs/7F5nfyWlRNDOiu5W6ZL/ivxk11G1S1fuoBJm bbVw== X-Gm-Message-State: APt69E0aOZVnU2hTNdn6L7wZw3saMHroVEQ+hqgn1mSTdS1aaFFtjzu9 33v4/YMUZ+b5qZdB6fJ1kunz3g== X-Received: by 2002:a1c:d812:: with SMTP id p18-v6mr6910776wmg.92.1530882492535; Fri, 06 Jul 2018 06:08:12 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.65.221]) by smtp.gmail.com with ESMTPSA id l17-v6sm14266704wrh.45.2018.07.06.06.08.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:08:12 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: wim@linux-watchdog.org, linux@roeck-us.net, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] watchdog: stm32: replace "%p" with "%pK" Date: Fri, 6 Jul 2018 15:08:08 +0200 Message-Id: <20180706130808.22466-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard --- drivers/watchdog/stm32_iwdg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c index c97ad5619cb0..740f74a98644 100644 --- a/drivers/watchdog/stm32_iwdg.c +++ b/drivers/watchdog/stm32_iwdg.c @@ -172,7 +172,7 @@ static int stm32_iwdg_probe(struct platform_device *pdev) ret = clk_prepare_enable(clk); if (ret) { - dev_err(&pdev->dev, "Unable to prepare clock %p\n", clk); + dev_err(&pdev->dev, "Unable to prepare clock %pK\n", clk); return ret; } -- 2.15.0