Received: from mga14.intel.com ([143.182.124.37]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VRjzi-00056M-67 for linux-mtd@lists.infradead.org; Thu, 03 Oct 2013 14:35:10 +0000 Message-ID: <1380810883.27358.432.camel@sauron.fi.intel.com> Subject: Re: [PATCH v4 05/12] mtd: nand: print out the cell information for nand chip From: Artem Bityutskiy To: Brian Norris Date: Thu, 03 Oct 2013 17:34:43 +0300 In-Reply-To: <20130930224942.GO23337@ld-irv-0074.broadcom.com> References: <1380092301-21924-1-git-send-email-b32955@freescale.com> <1380092301-21924-6-git-send-email-b32955@freescale.com> <20130930224942.GO23337@ld-irv-0074.broadcom.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: Huang Shijie , dwmw2@infradead.org, linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2013-09-30 at 15:49 -0700, Brian Norris wrote: > On Wed, Sep 25, 2013 at 02:58:14PM +0800, Huang Shijie wrote: > > Print out the cell information for nand chip. > > > > (Since the message is too long, this patch also splits the log > > with two separate pr_info()) > > > > Signed-off-by: Huang Shijie > > --- > > drivers/mtd/nand/nand_base.c | 11 +++++++---- > > 1 files changed, 7 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c > > index 94d9084..b94309b 100644 > > --- a/drivers/mtd/nand/nand_base.c > > +++ b/drivers/mtd/nand/nand_base.c > > @@ -3460,11 +3460,14 @@ ident_done: > > if (mtd->writesize > 512 && chip->cmdfunc == nand_command) > > chip->cmdfunc = nand_command_lp; > > > > - pr_info("NAND device: Manufacturer ID: 0x%02x, Chip ID: 0x%02x (%s %s)," > > - " %dMiB, page size: %d, OOB size: %d\n", > > + pr_info("NAND device: Manufacturer ID: 0x%02x," > > + "Chip ID: 0x%02x (%s %s) \n", > > You're adding excess whitespace before the '\n'. I'll squash this > myself. Nowadays' fashion is to never split strings, Huang. -- Best Regards, Artem Bityutskiy