Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp433221pxj; Fri, 11 Jun 2021 02:52:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHhk42bqVrokPSnIZ47et2y4F0cc2jRbQPetvdrPdawKvuhL4ruSlBrZvZHRj+/ofFC62q X-Received: by 2002:a17:906:8688:: with SMTP id g8mr2818089ejx.470.1623405127591; Fri, 11 Jun 2021 02:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623405127; cv=none; d=google.com; s=arc-20160816; b=KaFG9lz31hXVXDpNbJNj78nIFk+gZaReKZlhm7b9PNuGb1BflRzh3hr6THQjlcU7ta C+Vj78s4vx8Gjk/bqafYXwkVoRzbKuRszogIspeLj/Nw0FA/pDDbgr6Y92T/EHbxWg3b lGcX10bMt6f3cy0An5CNGpHPH90ZdgNRfV+HfqpEsNxr4GDq9+W39obCFdoXOiSmzlqm RCs89QmaOnmqec1Uu92XEcDzPij4TlQoF2ysB4FA2m+3Q9ZutZTS86/5OtAbEjioMrPW 6Gpj2XGazScA99i1so8NHEHMFSAGV6s3ftjDVI/uZxdWT34P0qOiQuMmMp134PbyVeMe MG/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9m/a+7F7Puo7iHcla5j/sky+A7VggiXtmQSjm2o1Ork=; b=YjMZ1eGmrp3Ew5W2paUrty/drr9g/QQFd2Qi0cEX7ij9uNFLtC8wUZQZe7FmjiC8dM nwbYe1qMLF6zgv4ENnNvCEBVJWUbNz/oYGIpxyA7RJJ4hBUJWV8u1NcNS6t/8xroxsHN s/7Hrz+DCAy3AZ22OGx7sKLBudg1cxaPZiDh4o/kbfesJvNY5TSIbJvax0IM30hulArL sBNEzAOG9dZDSRHPwX77L1hKDl32a+mMLUv/aLphN0denW61hSQvm93VR+/LBUtmYOyF KNsQcS7uBAvNAv8G5qfKta2KYYE7xTEF1taMc8FNROeYOLqOI5eU/4GUFlu136cPpxGE K/Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eOZuaYvx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si4779603ejn.173.2021.06.11.02.51.44; Fri, 11 Jun 2021 02:52:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=eOZuaYvx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230526AbhFKJul (ORCPT + 99 others); Fri, 11 Jun 2021 05:50:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:44786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbhFKJuk (ORCPT ); Fri, 11 Jun 2021 05:50:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C681F613D0; Fri, 11 Jun 2021 09:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623404918; bh=swJnTe4V9Mx/mZfpprQNdMIh0tMmmeszgr+WJIbehO4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eOZuaYvx/WFMuxjLr/QHY6F0MEPfMdOuBxXRPKbNBV24Dl4o6R7B8xSSjq5fTodGf OZQIAqwIhT5Iou9opl6zIAaXoNNNT8zA8uIpiVmQqTRxd+jrSzZfHZujDTAEovNYZe +he3556fqxhmU8jgPGbI4G8ehCen0l80gMFkONlA= Date: Fri, 11 Jun 2021 11:48:35 +0200 From: Greg KH To: Srinivas Kandagatla Cc: linux-kernel@vger.kernel.org, Christophe JAILLET , Chunyan Zhang Subject: Re: [PATCH 4/9] nvmem: sprd: Fix an error message Message-ID: References: <20210611083348.20170-1-srinivas.kandagatla@linaro.org> <20210611083348.20170-5-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 11, 2021 at 11:45:25AM +0200, Greg KH wrote: > On Fri, Jun 11, 2021 at 11:17:50AM +0200, Greg KH wrote: > > On Fri, Jun 11, 2021 at 10:05:40AM +0100, Srinivas Kandagatla wrote: > > > > > > > > > On 11/06/2021 09:56, Greg KH wrote: > > > > On Fri, Jun 11, 2021 at 09:33:43AM +0100, Srinivas Kandagatla wrote: > > > > > From: Christophe JAILLET > > > > > > > > > > 'ret' is known to be 0 here. > > > > > The expected error status is stored in 'status', so use it instead. > > > > > > > > > > Also change %d in %u, because status is an u32, not a int. > > > > > > > > > > Fixes: 096030e7f449 ("nvmem: sprd: Add Spreadtrum SoCs eFuse support") > > > > > Signed-off-by: Christophe JAILLET > > > > > Acked-by: Chunyan Zhang > > > > > Signed-off-by: Srinivas Kandagatla > > > > > --- > > > > > drivers/nvmem/sprd-efuse.c | 2 +- > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > diff --git a/drivers/nvmem/sprd-efuse.c b/drivers/nvmem/sprd-efuse.c > > > > > index 5d394559edf2..e3e721d4c205 100644 > > > > > --- a/drivers/nvmem/sprd-efuse.c > > > > > +++ b/drivers/nvmem/sprd-efuse.c > > > > > @@ -234,7 +234,7 @@ static int sprd_efuse_raw_prog(struct sprd_efuse *efuse, u32 blk, bool doub, > > > > > status = readl(efuse->base + SPRD_EFUSE_ERR_FLAG); > > > > > if (status) { > > > > > dev_err(efuse->dev, > > > > > - "write error status %d of block %d\n", ret, blk); > > > > > + "write error status %u of block %d\n", status, blk); > > > > > > > > Shouldn't this be %pe and not %u? > > > > > > This is not error pointer its status value read back from a register. > > > > > > I think %u should be good here. > > > > Argh, you are right, my fault. For some reason I thought this worked > > for integers as well. Don't we have such a printk modifier somewhere to > > turn error values into strings? Let me dig... > > Ah, errname() will do it. > > Looks like no one uses it, so nevermind, sorry for the noise. I'll go > apply this one now. Does not apply to my tree :(