mtd: replace DEBUG() with pr_debug()
Start moving away from the MTD_DEBUG_LEVEL messages. The dynamic debugging feature is a generic kernel feature that provides more flexibility. (See Documentation/dynamic-debug-howto.txt) Also fix some punctuation, indentation, and capitalization that went along with the affected lines. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
This commit is contained in:

committed by
Artem Bityutskiy

parent
d037021953
commit
289c052221
@@ -53,7 +53,7 @@ static int find_boot_record(struct INFTLrecord *inftl)
|
||||
struct INFTLPartition *ip;
|
||||
size_t retlen;
|
||||
|
||||
DEBUG(MTD_DEBUG_LEVEL3, "INFTL: find_boot_record(inftl=%p)\n", inftl);
|
||||
pr_debug("INFTL: find_boot_record(inftl=%p)\n", inftl);
|
||||
|
||||
/*
|
||||
* Assume logical EraseSize == physical erasesize for starting the
|
||||
@@ -385,7 +385,7 @@ int INFTL_formatblock(struct INFTLrecord *inftl, int block)
|
||||
struct mtd_info *mtd = inftl->mbd.mtd;
|
||||
int physblock;
|
||||
|
||||
DEBUG(MTD_DEBUG_LEVEL3, "INFTL: INFTL_formatblock(inftl=%p,"
|
||||
pr_debug("INFTL: INFTL_formatblock(inftl=%p,"
|
||||
"block=%d)\n", inftl, block);
|
||||
|
||||
memset(instr, 0, sizeof(struct erase_info));
|
||||
@@ -555,7 +555,7 @@ int INFTL_mount(struct INFTLrecord *s)
|
||||
int i;
|
||||
u8 *ANACtable, ANAC;
|
||||
|
||||
DEBUG(MTD_DEBUG_LEVEL3, "INFTL: INFTL_mount(inftl=%p)\n", s);
|
||||
pr_debug("INFTL: INFTL_mount(inftl=%p)\n", s);
|
||||
|
||||
/* Search for INFTL MediaHeader and Spare INFTL Media Header */
|
||||
if (find_boot_record(s) < 0) {
|
||||
@@ -585,7 +585,7 @@ int INFTL_mount(struct INFTLrecord *s)
|
||||
* NOTEXPLORED state. Then at the end we will try to format it and
|
||||
* mark it as free.
|
||||
*/
|
||||
DEBUG(MTD_DEBUG_LEVEL3, "INFTL: pass 1, explore each unit\n");
|
||||
pr_debug("INFTL: pass 1, explore each unit\n");
|
||||
for (first_block = s->firstEUN; first_block <= s->lastEUN; first_block++) {
|
||||
if (s->PUtable[first_block] != BLOCK_NOTEXPLORED)
|
||||
continue;
|
||||
@@ -727,7 +727,7 @@ int INFTL_mount(struct INFTLrecord *s)
|
||||
* possible because we don't update the previous pointers when
|
||||
* we fold chains. No big deal, just fix them up in PUtable.
|
||||
*/
|
||||
DEBUG(MTD_DEBUG_LEVEL3, "INFTL: pass 2, validate virtual chains\n");
|
||||
pr_debug("INFTL: pass 2, validate virtual chains\n");
|
||||
for (logical_block = 0; logical_block < s->numvunits; logical_block++) {
|
||||
block = s->VUtable[logical_block];
|
||||
last_block = BLOCK_NIL;
|
||||
@@ -785,7 +785,7 @@ int INFTL_mount(struct INFTLrecord *s)
|
||||
s->numfreeEUNs = 0;
|
||||
s->LastFreeEUN = BLOCK_NIL;
|
||||
|
||||
DEBUG(MTD_DEBUG_LEVEL3, "INFTL: pass 3, format unused blocks\n");
|
||||
pr_debug("INFTL: pass 3, format unused blocks\n");
|
||||
for (block = s->firstEUN; block <= s->lastEUN; block++) {
|
||||
if (s->PUtable[block] == BLOCK_NOTEXPLORED) {
|
||||
printk("INFTL: unreferenced block %d, formatting it\n",
|
||||
|
Reference in New Issue
Block a user