From patchwork Wed Apr 21 14:06:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 425297 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp361393jao; Wed, 21 Apr 2021 07:07:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKbv/6QNM6ypbSM8nXZ0RgzMb2cpxdI0HKA3hxyNfFKozWn5dfQSXpJmdJHgOq3vScc+Dd X-Received: by 2002:a17:902:d2ce:b029:eb:364:a2a0 with SMTP id n14-20020a170902d2ceb02900eb0364a2a0mr34423428plc.0.1619014022066; Wed, 21 Apr 2021 07:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619014022; cv=none; d=google.com; s=arc-20160816; b=dMGBKrzs+/hdpAMCrVgedsHV9bcgPYKr14SlRSQ9DFmxmwBEGQL+EZo5CN/STpkPbA cd3z4iZuf2Q3hp3iFbgkThIauBxZ0DFrTMX1dnEK20cOt8R+7G1X93gk77OMEZyHyxBc 7U/nnNI31l273jy1FagQmPjrnxn7zEh4YTwjenklliEwsV5rxmuOVzc3JlipdZO+kq/0 D+kKWbPDItzntUWJcd277tWXGMjmpMD9ojZETo+/Q3/cgS7TSMFy78SAZhxOw/RG/oyu hBFstsSAD7POMd4WpdIWENP1D2jao+YpcioN/UOtcNiPKvzPQpDOB41zS9A/dBG5ptW1 76hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Nh7NFI0xWwE7X6H5zeuvTZHCMFcsqwntVlYXygx6HX4=; b=zopcaFI+MUIed1QZ8SL81nmMZkt9y2goM3tAqOCUc4UFjdqs82uGtm4yCceih1fVnS wkchXYJKqzQyx8ZyXncnCeGKAxV2TLxvQxBBDKtLoMSSDALkDeKUCnfbQdt7e7ubMG6+ 3H7ajYXBam0Ckz0/10bC/hcPtnLL8ebf4cA4e38t6JEpCQtzlFyX3xpSFkGiaPocIs9r bs2TTe+MajqXED03x1ESJ03haWk3bVfeeS3V82B2wcTxaCkVfyBHiRp0vKh7qsfI1+Mq ebvVeHZj00dZLCAHOoy2XkCCqH6LbE+cxZ99KjpYD9k3xK4/f88wP2OeP7mnV04frPFK u/3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A2iwB8xH; spf=pass (google.com: domain of linux-spi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i187si2525585pfb.54.2021.04.21.07.07.01; Wed, 21 Apr 2021 07:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-spi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A2iwB8xH; spf=pass (google.com: domain of linux-spi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243275AbhDUOHd (ORCPT + 1 other); Wed, 21 Apr 2021 10:07:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:41704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243195AbhDUOHd (ORCPT ); Wed, 21 Apr 2021 10:07:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94D226144D; Wed, 21 Apr 2021 14:06:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619014020; bh=Skq855dn4Yk8ZwBtQx47eXayXzk9s74Sg6+dno+4Ebw=; h=From:To:Cc:Subject:Date:From; b=A2iwB8xHmmW52ko7lImxPer4TrHRy06TLUnEw5x6ZCLapRg+MKpq0k8GCJWPhrhqS Q9g5G+px+nMsU3Mpy2L3hSvfiZqVK/LQqW0CsG4O2eRavgFPxvCp1BNpWIhjgHKp+k qEBKaOGGWyecjdjYxkEgy/c81IJrYRxPqJGBkUz3JhrVFpVA+M7pSSTClzxmHwEBj3 aQL/ka9VddIrzvTp10WI/PWuBStazHXfAvPxo7G5HrxA+PG2TplPQO2QJz8Q4q6uVH Hptw4ZIN/SWSF7PK4hTTxBuG4wDLUXT2/ljZeXu34PquS1z8ohCtcFeT3PNqHMoVM/ N+G6bcwVfi/VQ== From: Arnd Bergmann To: Mark Brown , Maxime Coquelin , Alexandre Torgue , Patrice Chotard Cc: Arnd Bergmann , Christophe Kerello , Zhang Qilong , linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: stm32-qspi: fix debug format string Date: Wed, 21 Apr 2021 16:06:48 +0200 Message-Id: <20210421140653.3964725-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org From: Arnd Bergmann Printing size_t needs a special %zd format modifier to avoid a warning like: drivers/spi/spi-stm32-qspi.c:481:41: note: format string is defined here 481 | dev_dbg(qspi->dev, "%s len = 0x%x offs = 0x%llx buf = 0x%p\n", __func__, len, offs, buf); Fixes: 18674dee3cd6 ("spi: stm32-qspi: Add dirmap support") Signed-off-by: Arnd Bergmann --- drivers/spi/spi-stm32-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c index e2a99f054551..7e640ccc7e77 100644 --- a/drivers/spi/spi-stm32-qspi.c +++ b/drivers/spi/spi-stm32-qspi.c @@ -478,7 +478,7 @@ static ssize_t stm32_qspi_dirmap_read(struct spi_mem_dirmap_desc *desc, * all needed transfer information into struct spi_mem_op */ memcpy(&op, &desc->info.op_tmpl, sizeof(struct spi_mem_op)); - dev_dbg(qspi->dev, "%s len = 0x%x offs = 0x%llx buf = 0x%p\n", __func__, len, offs, buf); + dev_dbg(qspi->dev, "%s len = 0x%zx offs = 0x%llx buf = 0x%p\n", __func__, len, offs, buf); op.data.nbytes = len; op.addr.val = desc->info.offset + offs;