From patchwork Fri Jul 6 13:07:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 10511677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2D5496024A for ; Fri, 6 Jul 2018 13:07:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DB2028671 for ; Fri, 6 Jul 2018 13:07:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11E35286A4; Fri, 6 Jul 2018 13:07:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B76E328671 for ; Fri, 6 Jul 2018 13:07:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=c77siXnuOrEFOA2kqLNOP5wWtfrbB0sPy5TyeXcXCms=; b=q14 qGYGZJH1CQO/92tcIDGfXB7id82osCQD25o7ueiTlhUn+zwPNIKuJqQlJMU9RLDGR0n1MLYFJ25Zc Arvoaf/WSZ7WmbveaDrgdoZgFTW783qflAo8WKxdw/bk8O483zgug1dTdoXCDxD1fSko5vke9QI7m 7ju+IlkCOz1yZLRVYT3govuErN2D3KoLGQOyt4h/8RFPzcBup2nLJNKUZ7Crrcumvxp+HLQYVnMfh YjaqMA5gaOHP6sw1UsLdxaVNCS8tBMtLIXOycTTzSthwcQll/tdbp8GZRKMV+VQvRHBRjsgeMV1ll aVkFcRGc2aZOIC41vP35sL+/Wfvv21w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbQSI-0007nS-Pk; Fri, 06 Jul 2018 13:07:22 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbQSG-0007lz-19 for linux-arm-kernel@lists.infradead.org; Fri, 06 Jul 2018 13:07:21 +0000 Received: by mail-wm0-x242.google.com with SMTP id 69-v6so14351488wmf.3 for ; Fri, 06 Jul 2018 06:07:09 -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=WJeLuqyEJc7/tPpKxg+RC7iLj+X8Fywv7Zs3uhn6DB8=; b=iRkXqLWFnhArdsBb6TmP9EISMQ872vTwH07GyVtX469rW0yvMMZGbTzu3Ex2qOXO3j H8YxX1B/9Gh2ov3Pd8QvNMTKyy0FFLUsi58j2jugeJxgz5VX7ocdfmrANJj7UFVqqDcX Y6BHmXmsj+YfBIIkVW5PWbBm4fIJfy2qXyeFE= 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=WJeLuqyEJc7/tPpKxg+RC7iLj+X8Fywv7Zs3uhn6DB8=; b=VWeKpzBzFKaz2Rw7B7+4Vyx9ZQJjv04YhhT1NS2ps7Il5TMNrpGWPExwI5JUHQoZZr 8RhDQMS0s7G0d2GcXq4+5r/DRdhpp5p60YhaVZHsEXs38k35UFxsMvt3g5tMSWKlXcL3 6MrDKoNo/FeTrPUD/0yy8sIDSUMUhnaPnwt3t06r5w4l6wBtEbbKh5QNyqJoSk5R7sai WGrQBCYVhvxr/Vw62312opKx1tV6Ov3Fb/pEu+Ayeqcuu4ruKL9fmWOLhNE3N95Gv8lz 4I+A9zR8lt2NrnIUUzTjR29cBYcreilQWWrGQuVrCNUt+mkWbUixci4Jgqh6EeqQjnjh UdKg== X-Gm-Message-State: APt69E1zQRMTBhaQ4iWutTXcIqWd0uaQEmUcefQQG8jCEXPLxq0EKw+e WfKFYbolaG9ChiTr976zutoFz0BXXY4= X-Google-Smtp-Source: AAOMgpc/5R8EZZwqCnDxqtnoeiu8jPhtjD5Y2rmjWaLSFJv2ITjUgKV6JEJDi9ify20bU7HL6epyPg== X-Received: by 2002:a1c:90e:: with SMTP id 14-v6mr6684069wmj.130.1530882428381; Fri, 06 Jul 2018 06:07:08 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.65.221]) by smtp.gmail.com with ESMTPSA id n6-v6sm719241wrr.27.2018.07.06.06.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:07:07 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, arnaud.pouliquen@st.com Subject: [PATCH] sound: stm32: replace "%p" with "%pK" Date: Fri, 6 Jul 2018 15:07:03 +0200 Message-Id: <20180706130703.22352-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180706_060720_079190_FD7994C7 X-CRM114-Status: GOOD ( 11.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Benjamin Gaignard MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard --- sound/soc/stm/stm32_adfsdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c index db73fef3e500..0e9373064032 100644 --- a/sound/soc/stm/stm32_adfsdm.c +++ b/sound/soc/stm/stm32_adfsdm.c @@ -149,7 +149,7 @@ static int stm32_afsdm_pcm_cb(const void *data, size_t size, void *private) unsigned int old_pos = priv->pos; unsigned int cur_size = size; - dev_dbg(rtd->dev, "%s: buff_add :%p, pos = %d, size = %zu\n", + dev_dbg(rtd->dev, "%s: buff_add :%pK, pos = %d, size = %zu\n", __func__, &pcm_buff[priv->pos], priv->pos, size); if ((priv->pos + size) > buff_size) {