]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: replace MTDDEBUG() with pr_debug()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 Oct 2017 15:10:48 +0000 (00:10 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 23 Oct 2017 18:07:26 +0000 (14:07 -0400)
commit166cae20dd797dcb25fc550269792f15704d9c58
tree9d3bca5af6ead142c62868803710c9502e533c36
parentce0dea889a01d06bdc2d845fd03e90bcf8b49fec
mtd: replace MTDDEBUG() with pr_debug()

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:

// <smpl>
@@
expression e1, e2;
@@
-MTDDEBUG(e1, e2)
+pr_debug(e2)
@@
expression e1, e2;
@@
-MTDDEBUG(e1, e2,
+pr_debug(e2,
 ...)
// </smpl>

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mtd/nand/atmel_nand.c
drivers/mtd/nand/davinci_nand.c
drivers/mtd/nand/mxc_nand.c
drivers/mtd/nand/nand_bch.c
drivers/mtd/onenand/onenand_base.c
drivers/mtd/onenand/onenand_bbt.c