From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vq6i1-0008AG-MB for linux-mtd@lists.infradead.org; Mon, 09 Dec 2013 19:41:38 +0000 Received: by mail-ob0-f175.google.com with SMTP id uz6so4222767obc.6 for ; Mon, 09 Dec 2013 11:41:15 -0800 (PST) Date: Mon, 9 Dec 2013 11:41:10 -0800 From: Brian Norris To: Ezequiel Garcia Subject: Re: [RFC/PATCH] mtd: nand: Refactor print messages Message-ID: <20131209194110.GR27149@ld-irv-0074.broadcom.com> References: <1385379031-27766-1-git-send-email-ezequiel.garcia@free-electrons.com> <20131205020137.GH27149@ld-irv-0074.broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131205020137.GH27149@ld-irv-0074.broadcom.com> Cc: Huang Shijie , David Woodhouse , linux-mtd@lists.infradead.org, Pekon Gupta List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Dec 04, 2013 at 06:01:37PM -0800, Brian Norris wrote: > Hi Ezequiel, > > On Mon, Nov 25, 2013 at 08:30:31AM -0300, Ezequiel Garcia wrote: > > Add a nice "nand:" prefix to all pr_xxx() messages. This allows > > to get rid of the "NAND" words in messages, given the context > > is already given by the prefix. [...] > > @@ -3372,8 +3374,8 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, > > id_data[i] = chip->read_byte(mtd); > > > > if (id_data[0] != *maf_id || id_data[1] != *dev_id) { > > - pr_info("%s: second ID read did not match " > > - "%02x,%02x against %02x,%02x\n", __func__, > > + pr_info("second ID read did not match " > > + "%02x,%02x against %02x,%02x\n", > > scripts/checkpatch.pl and Documentation/CodingStyle don't like this long > string (even though it would be over 80 chars). I think we should combine them. > > If no one objects to the patch, I'll just make the modification myself. > > > *maf_id, *dev_id, id_data[0], id_data[1]); > > return ERR_PTR(-ENODEV); > > } Pushed to l2-mtd.git, with the above edit. Brian