Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1007918iob; Fri, 13 May 2022 19:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy8nOiDF4y1M4PWQyDz7RO3E3j+RDYl7r1uHSmQfRZoNe4NsRnbHGmmBkxQ/Cx+NKAvEmp X-Received: by 2002:a1c:35c1:0:b0:38e:c4f6:1931 with SMTP id c184-20020a1c35c1000000b0038ec4f61931mr6894816wma.161.1652495092419; Fri, 13 May 2022 19:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652495092; cv=none; d=google.com; s=arc-20160816; b=bo4l2e0e1LelBTcSqDdkY3k6DWHmF/fS+ODrCrcWshOvQam4FKCewBWTUSmXDFGEtN jVGkUMVdsvpKYGierN59GwszaBcQ15fF/ml9hK1C8O4AyAGmRBQxw0EI7sM1rHQSTY15 5ldmP+XbbysdrTTMHEmqoRt8OZpW1z4TkqmET9MmN3QFzM5n0EUZg2ECkG4S6sqU2J9P Upmh9QxhYazyKb/SDclgxoLQ76JBKkiapWH6sO77+GIPhKng9tMfAz8MhFzho6S+6gRR nmtNwJiSrT+2pRqVVcqamPx3UzzJFermatgYmj+urIxMRln+/NDW5UXGlMp92YbOAIg6 coLg== 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=MsVBxvyfgGwdtzvGgcuBz5n9dAHmwRvAG2ctFAEx0YE=; b=GFtAGssiGjybuymVnSdjSEGOQLKAfsgI5MZxHsPVMps4ib10t9j9GybRYXY1ADiMzJ erUsIcKfZLlQfHMUcqxSd1kG4tuRBsUq4w/StTbiX3P839G6aOiDQYfPW7znXBX9htuq wDHRBTM1BG8SKFtYtYbflbTzYAO3Lh5fH9qG29Omt0n8dTuNHWma4DMjJlLjPFH1jbQT rA7mB0Mr8tnB3Xw7xxnmgyRG8KVGGGktMUns3t3xDx0lA6SEyJaRf5HRtWPktL2Fh5f7 P2PaGxxliGuLiVMns1SeNydWrqAWC8sWKx/VRH1MpE0qz4TYC29LHc9bkQmMVNe3KaVt S3bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=uAz9oTYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m15-20020a5d64af000000b0020ae19fb092si4676522wrp.527.2022.05.13.19.24.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:24:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=uAz9oTYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 83C474C86E3; Fri, 13 May 2022 17:40:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353772AbiELMcn (ORCPT + 99 others); Thu, 12 May 2022 08:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353727AbiELMcl (ORCPT ); Thu, 12 May 2022 08:32:41 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24ABB5A0B9 for ; Thu, 12 May 2022 05:32:39 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 24CCWESM067393; Thu, 12 May 2022 07:32:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1652358734; bh=MsVBxvyfgGwdtzvGgcuBz5n9dAHmwRvAG2ctFAEx0YE=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=uAz9oTYrCIN9LT2cx3D0A2LKdVIwQsxRVeVGUg+C/glF2ALLBGHCpF0u/X+EoPrsZ tHqBIRYlSEXmklkxJ15C9V/NEKfswZ8Nb1v4EirAn93p0WGmFG3mcMYkQ7TTfrj7WZ MOoTsl2/147S1S0jGVK+yds3lR+T8rkK91FbaOkc= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 24CCWEek051917 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 May 2022 07:32:14 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 12 May 2022 07:32:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 12 May 2022 07:32:14 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 24CCWDK8094985; Thu, 12 May 2022 07:32:14 -0500 Date: Thu, 12 May 2022 18:02:13 +0530 From: Pratyush Yadav To: Michael Walle CC: Tudor Ambarus , Dan Carpenter , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , , , kernel test robot Subject: Re: [PATCH] mtd: spi-nor: debugfs: fix format specifier Message-ID: <20220512123213.fzly4gollonlo27p@ti.com> References: <20220512112027.3771734-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220512112027.3771734-1-michael@walle.cc> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, On 12/05/22 01:20PM, Michael Walle wrote: > The intention was to print the JEDEC ID in the following format: > nn nn nn > > In this case format specifier has to be "%*ph". Fix it. > > Fixes: 0257be79fc4a ("mtd: spi-nor: expose internal parameters via debugfs") > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Signed-off-by: Michael Walle > --- > drivers/mtd/spi-nor/debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/spi-nor/debugfs.c b/drivers/mtd/spi-nor/debugfs.c > index bf9fda5d4d0b..4b972bd4b80d 100644 > --- a/drivers/mtd/spi-nor/debugfs.c > +++ b/drivers/mtd/spi-nor/debugfs.c > @@ -81,7 +81,7 @@ static int spi_nor_params_show(struct seq_file *s, void *data) > int i; > > seq_printf(s, "name\t\t%s\n", info->name); > - seq_printf(s, "id\t\t%*phn\n", SPI_NOR_MAX_ID_LEN, nor->id); > + seq_printf(s, "id\t\t%*ph\n", SPI_NOR_MAX_ID_LEN, nor->id); Patch does not apply. Are you basing this on some other commits you have? This line is different on my tree: seq_printf(s, "id\t\t%*phn\n", info->id_len, info->id); In fact, I do not have a nor->id at all in my tree. BTW, I have applied https://lore.kernel.org/r/20220429102018.2361038-2-michael@walle.cc I am going to apply the below patch. Please ACK/NACK. I did a quick test, the output stays the same before and after this patch. -- 8< -- From c47452194641b5d27c20e557c84a46c85fd7ce37 Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Thu, 12 May 2022 13:20:27 +0200 Subject: [PATCH] mtd: spi-nor: debugfs: fix format specifier The intention was to print the JEDEC ID in the following format: nn nn nn In this case format specifier has to be "%*ph". Fix it. Fixes: 0257be79fc4a ("mtd: spi-nor: expose internal parameters via debugfs") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Michael Walle Signed-off-by: Pratyush Yadav Link: https://lore.kernel.org/r/20220512112027.3771734-1-michael@walle.cc --- drivers/mtd/spi-nor/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/debugfs.c b/drivers/mtd/spi-nor/debugfs.c index 1949905eefea..eaf84f7a0676 100644 --- a/drivers/mtd/spi-nor/debugfs.c +++ b/drivers/mtd/spi-nor/debugfs.c @@ -81,7 +81,7 @@ static int spi_nor_params_show(struct seq_file *s, void *data) int i; seq_printf(s, "name\t\t%s\n", info->name); - seq_printf(s, "id\t\t%*phn\n", info->id_len, info->id); + seq_printf(s, "id\t\t%*ph\n", info->id_len, info->id); string_get_size(params->size, 1, STRING_UNITS_2, buf, sizeof(buf)); seq_printf(s, "size\t\t%s\n", buf); seq_printf(s, "write size\t%u\n", params->writesize); -- Regards, Pratyush Yadav Texas Instruments Inc.