aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-07-19 13:06:06 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:02:15 -0400
commita0f5080ecc1c75f9c08591d9b0f48451e7ac8ddc (patch)
tree5e04754e3a443c50a426f6469d8336a5f639fcdf /drivers
parentb94e757c4b3aafa52f8b82efed8660427a8d2880 (diff)
mtd: nand: change KERN_DEBUG to KERN_INFO
Soon we will change many printk statements into pr_* statements, i.e., 'printk(KERN_INFO, ...)' becomes 'pr_info(...)'. However, this means that KERN_DEBUG messages will become pr_debug() statements and therefore will not be activated by default - they must be enabled using dynamic debug. So, for important DEBUG messages, we will simply upgrade these to INFO so that they appear by default. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/nand_bbt.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
index a4fcbf1cbc76..0d2eaa72288f 100644
--- a/drivers/mtd/nand/nand_bbt.c
+++ b/drivers/mtd/nand/nand_bbt.c
@@ -219,7 +219,7 @@ static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num,
219 if (tmp == msk) 219 if (tmp == msk)
220 continue; 220 continue;
221 if (reserved_block_code && (tmp == reserved_block_code)) { 221 if (reserved_block_code && (tmp == reserved_block_code)) {
222 printk(KERN_DEBUG "nand_read_bbt: Reserved block at 0x%012llx\n", 222 printk(KERN_INFO "nand_read_bbt: Reserved block at 0x%012llx\n",
223 (loff_t)((offs << 2) + (act >> 1)) << this->bbt_erase_shift); 223 (loff_t)((offs << 2) + (act >> 1)) << this->bbt_erase_shift);
224 this->bbt[offs + (act >> 3)] |= 0x2 << (act & 0x06); 224 this->bbt[offs + (act >> 3)] |= 0x2 << (act & 0x06);
225 mtd->ecc_stats.bbtblocks++; 225 mtd->ecc_stats.bbtblocks++;
@@ -227,9 +227,9 @@ static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num,
227 } 227 }
228 /* 228 /*
229 * Leave it for now, if it's matured we can 229 * Leave it for now, if it's matured we can
230 * move this message to MTD_DEBUG_LEVEL0. 230 * move this message to pr_debug.
231 */ 231 */
232 printk(KERN_DEBUG "nand_read_bbt: Bad block at 0x%012llx\n", 232 printk(KERN_INFO "nand_read_bbt: Bad block at 0x%012llx\n",
233 (loff_t)((offs << 2) + (act >> 1)) << this->bbt_erase_shift); 233 (loff_t)((offs << 2) + (act >> 1)) << this->bbt_erase_shift);
234 /* Factory marked bad or worn out? */ 234 /* Factory marked bad or worn out? */
235 if (tmp == 0) 235 if (tmp == 0)
@@ -389,7 +389,7 @@ static int read_abs_bbts(struct mtd_info *mtd, uint8_t *buf,
389 scan_read_raw(mtd, buf, (loff_t)td->pages[0] << this->page_shift, 389 scan_read_raw(mtd, buf, (loff_t)td->pages[0] << this->page_shift,
390 mtd->writesize, td); 390 mtd->writesize, td);
391 td->version[0] = buf[bbt_get_ver_offs(mtd, td)]; 391 td->version[0] = buf[bbt_get_ver_offs(mtd, td)];
392 printk(KERN_DEBUG "Bad block table at page %d, version 0x%02X\n", 392 printk(KERN_INFO "Bad block table at page %d, version 0x%02X\n",
393 td->pages[0], td->version[0]); 393 td->pages[0], td->version[0]);
394 } 394 }
395 395
@@ -398,7 +398,7 @@ static int read_abs_bbts(struct mtd_info *mtd, uint8_t *buf,
398 scan_read_raw(mtd, buf, (loff_t)md->pages[0] << this->page_shift, 398 scan_read_raw(mtd, buf, (loff_t)md->pages[0] << this->page_shift,
399 mtd->writesize, td); 399 mtd->writesize, td);
400 md->version[0] = buf[bbt_get_ver_offs(mtd, md)]; 400 md->version[0] = buf[bbt_get_ver_offs(mtd, md)];
401 printk(KERN_DEBUG "Bad block table at page %d, version 0x%02X\n", 401 printk(KERN_INFO "Bad block table at page %d, version 0x%02X\n",
402 md->pages[0], md->version[0]); 402 md->pages[0], md->version[0]);
403 } 403 }
404 return 1; 404 return 1;
@@ -616,7 +616,7 @@ static int search_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr
616 if (td->pages[i] == -1) 616 if (td->pages[i] == -1)
617 printk(KERN_WARNING "Bad block table not found for chip %d\n", i); 617 printk(KERN_WARNING "Bad block table not found for chip %d\n", i);
618 else 618 else
619 printk(KERN_DEBUG "Bad block table found at page %d, version 0x%02X\n", td->pages[i], 619 printk(KERN_INFO "Bad block table found at page %d, version 0x%02X\n", td->pages[i],
620 td->version[i]); 620 td->version[i]);
621 } 621 }
622 return 0; 622 return 0;
@@ -847,7 +847,7 @@ static int write_bbt(struct mtd_info *mtd, uint8_t *buf,
847 if (res < 0) 847 if (res < 0)
848 goto outerr; 848 goto outerr;
849 849
850 printk(KERN_DEBUG "Bad block table written to 0x%012llx, version " 850 printk(KERN_INFO "Bad block table written to 0x%012llx, version "
851 "0x%02X\n", (unsigned long long)to, td->version[chip]); 851 "0x%02X\n", (unsigned long long)to, td->version[chip]);
852 852
853 /* Mark it as used */ 853 /* Mark it as used */