From: Tom Rini Date: Mon, 23 Oct 2017 17:23:57 -0400 Subject: [U-Boot] [U-Boot,1/2] mtd: replace MTDDEBUG() with pr_debug() In-Reply-To: <1508253049-4105-1-git-send-email-yamada.masahiro@socionext.com> References: <1508253049-4105-1-git-send-email-yamada.masahiro@socionext.com> Message-ID: <20171023212357.GC22919@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 18, 2017 at 12:10:48AM +0900, Masahiro Yamada wrote: > In old days, the MTD subsystem in Linux had debug facility like > DEBUG(MTD_DEBUG_LEVEL1, ...). > > They were all replaced with pr_debug() until Linux 3.2. See Linux > commit 289c05222172 ("mtd: replace DEBUG() with pr_debug()"). > > U-Boot still uses similar macros. Covert all of them for easier sync. > > Done with the help of Coccinelle. > > The semantic patch I used is as follows: > > // > @@ > expression e1, e2; > @@ > -MTDDEBUG(e1, e2) > +pr_debug(e2) > @@ > expression e1, e2; > @@ > -MTDDEBUG(e1, e2, > +pr_debug(e2, > ...) > // > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: