Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: maps: bcm963xx-flash: clean up printk usage

Replace raw printk's with their pr_XXX equivalent and unify broken up
strings so they become grepable.

Also replace the PFX definition with a pr_fmt().

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Jonas Gorski and committed by
David Woodhouse
ca105f4d 6ae9c1c8

+10 -10
+10 -10
drivers/mtd/maps/bcm963xx-flash.c
··· 18 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 19 */ 20 20 21 + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 22 + 21 23 #include <linux/init.h> 22 24 #include <linux/kernel.h> 23 25 #include <linux/slab.h> ··· 35 33 36 34 #define BCM63XX_BUSWIDTH 2 /* Buswidth */ 37 35 #define BCM63XX_EXTENDED_SIZE 0xBFC00000 /* Extended flash address */ 38 - 39 - #define PFX KBUILD_MODNAME ": " 40 36 41 37 static struct mtd_partition *parsed_parts; 42 38 ··· 80 80 tagversion = &(buf->tag_version[0]); 81 81 boardid = &(buf->board_id[0]); 82 82 83 - printk(KERN_INFO PFX "CFE boot tag found with version %s " 84 - "and board type %s\n", tagversion, boardid); 83 + pr_info("CFE boot tag found with version %s and board type %s\n", 84 + tagversion, boardid); 85 85 86 86 kerneladdr = kerneladdr - BCM63XX_EXTENDED_SIZE; 87 87 rootfsaddr = kerneladdr + kernellen; ··· 140 140 parts[curpart].size = master->size - parts[0].size - parts[3].size; 141 141 142 142 for (i = 0; i < nrparts; i++) 143 - printk(KERN_INFO PFX "Partition %d is %s offset %lx and " 144 - "length %lx\n", i, parts[i].name, 145 - (long unsigned int)(parts[i].offset), 146 - (long unsigned int)(parts[i].size)); 143 + pr_info("Partition %d is %s offset %lx and length %lx\n", i, 144 + parts[i].name, (long unsigned int)(parts[i].offset), 145 + (long unsigned int)(parts[i].size)); 147 146 148 - printk(KERN_INFO PFX "Spare partition is offset %x and length %x\n", 149 - spareaddr, sparelen); 147 + pr_info("Spare partition is offset %x and length %x\n", spareaddr, 148 + sparelen); 149 + 150 150 *pparts = parts; 151 151 vfree(buf); 152 152