diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-07-19 13:06:09 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:16 -0400 |
commit | 289c05222172b51401dbbb017115655f241d94ab (patch) | |
tree | 1fd2c801102a8c4a085f75a08c766d3250491962 /drivers/mtd/onenand | |
parent | d037021953922ebdbc34b98b8c4648017b1c6e89 (diff) |
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>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 18 | ||||
-rw-r--r-- | drivers/mtd/onenand/onenand_bbt.c | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 30c652c071e8..b07b05259c92 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -1122,7 +1122,7 @@ static int onenand_mlc_read_ops_nolock(struct mtd_info *mtd, loff_t from, | |||
1122 | int ret = 0; | 1122 | int ret = 0; |
1123 | int writesize = this->writesize; | 1123 | int writesize = this->writesize; |
1124 | 1124 | ||
1125 | DEBUG(MTD_DEBUG_LEVEL3, "%s: from = 0x%08x, len = %i\n", | 1125 | pr_debug("%s: from = 0x%08x, len = %i\n", |
1126 | __func__, (unsigned int) from, (int) len); | 1126 | __func__, (unsigned int) from, (int) len); |
1127 | 1127 | ||
1128 | if (ops->mode == MTD_OOB_AUTO) | 1128 | if (ops->mode == MTD_OOB_AUTO) |
@@ -1226,7 +1226,7 @@ static int onenand_read_ops_nolock(struct mtd_info *mtd, loff_t from, | |||
1226 | int ret = 0, boundary = 0; | 1226 | int ret = 0, boundary = 0; |
1227 | int writesize = this->writesize; | 1227 | int writesize = this->writesize; |
1228 | 1228 | ||
1229 | DEBUG(MTD_DEBUG_LEVEL3, "%s: from = 0x%08x, len = %i\n", | 1229 | pr_debug("%s: from = 0x%08x, len = %i\n", |
1230 | __func__, (unsigned int) from, (int) len); | 1230 | __func__, (unsigned int) from, (int) len); |
1231 | 1231 | ||
1232 | if (ops->mode == MTD_OOB_AUTO) | 1232 | if (ops->mode == MTD_OOB_AUTO) |
@@ -1357,7 +1357,7 @@ static int onenand_read_oob_nolock(struct mtd_info *mtd, loff_t from, | |||
1357 | 1357 | ||
1358 | from += ops->ooboffs; | 1358 | from += ops->ooboffs; |
1359 | 1359 | ||
1360 | DEBUG(MTD_DEBUG_LEVEL3, "%s: from = 0x%08x, len = %i\n", | 1360 | pr_debug("%s: from = 0x%08x, len = %i\n", |
1361 | __func__, (unsigned int) from, (int) len); | 1361 | __func__, (unsigned int) from, (int) len); |
1362 | 1362 | ||
1363 | /* Initialize return length value */ | 1363 | /* Initialize return length value */ |
@@ -1576,7 +1576,7 @@ int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from, | |||
1576 | size_t len = ops->ooblen; | 1576 | size_t len = ops->ooblen; |
1577 | u_char *buf = ops->oobbuf; | 1577 | u_char *buf = ops->oobbuf; |
1578 | 1578 | ||
1579 | DEBUG(MTD_DEBUG_LEVEL3, "%s: from = 0x%08x, len = %zi\n", | 1579 | pr_debug("%s: from = 0x%08x, len = %zi\n", |
1580 | __func__, (unsigned int) from, len); | 1580 | __func__, (unsigned int) from, len); |
1581 | 1581 | ||
1582 | /* Initialize return value */ | 1582 | /* Initialize return value */ |
@@ -1750,7 +1750,7 @@ static int onenand_panic_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
1750 | /* Wait for any existing operation to clear */ | 1750 | /* Wait for any existing operation to clear */ |
1751 | onenand_panic_wait(mtd); | 1751 | onenand_panic_wait(mtd); |
1752 | 1752 | ||
1753 | DEBUG(MTD_DEBUG_LEVEL3, "%s: to = 0x%08x, len = %i\n", | 1753 | pr_debug("%s: to = 0x%08x, len = %i\n", |
1754 | __func__, (unsigned int) to, (int) len); | 1754 | __func__, (unsigned int) to, (int) len); |
1755 | 1755 | ||
1756 | /* Initialize retlen, in case of early exit */ | 1756 | /* Initialize retlen, in case of early exit */ |
@@ -1883,7 +1883,7 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to, | |||
1883 | u_char *oobbuf; | 1883 | u_char *oobbuf; |
1884 | int ret = 0, cmd; | 1884 | int ret = 0, cmd; |
1885 | 1885 | ||
1886 | DEBUG(MTD_DEBUG_LEVEL3, "%s: to = 0x%08x, len = %i\n", | 1886 | pr_debug("%s: to = 0x%08x, len = %i\n", |
1887 | __func__, (unsigned int) to, (int) len); | 1887 | __func__, (unsigned int) to, (int) len); |
1888 | 1888 | ||
1889 | /* Initialize retlen, in case of early exit */ | 1889 | /* Initialize retlen, in case of early exit */ |
@@ -2078,7 +2078,7 @@ static int onenand_write_oob_nolock(struct mtd_info *mtd, loff_t to, | |||
2078 | 2078 | ||
2079 | to += ops->ooboffs; | 2079 | to += ops->ooboffs; |
2080 | 2080 | ||
2081 | DEBUG(MTD_DEBUG_LEVEL3, "%s: to = 0x%08x, len = %i\n", | 2081 | pr_debug("%s: to = 0x%08x, len = %i\n", |
2082 | __func__, (unsigned int) to, (int) len); | 2082 | __func__, (unsigned int) to, (int) len); |
2083 | 2083 | ||
2084 | /* Initialize retlen, in case of early exit */ | 2084 | /* Initialize retlen, in case of early exit */ |
@@ -2489,7 +2489,7 @@ static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr) | |||
2489 | struct mtd_erase_region_info *region = NULL; | 2489 | struct mtd_erase_region_info *region = NULL; |
2490 | loff_t region_offset = 0; | 2490 | loff_t region_offset = 0; |
2491 | 2491 | ||
2492 | DEBUG(MTD_DEBUG_LEVEL3, "%s: start=0x%012llx, len=%llu\n", __func__, | 2492 | pr_debug("%s: start=0x%012llx, len=%llu\n", __func__, |
2493 | (unsigned long long) instr->addr, (unsigned long long) instr->len); | 2493 | (unsigned long long) instr->addr, (unsigned long long) instr->len); |
2494 | 2494 | ||
2495 | /* Do not allow erase past end of device */ | 2495 | /* Do not allow erase past end of device */ |
@@ -2558,7 +2558,7 @@ static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr) | |||
2558 | */ | 2558 | */ |
2559 | static void onenand_sync(struct mtd_info *mtd) | 2559 | static void onenand_sync(struct mtd_info *mtd) |
2560 | { | 2560 | { |
2561 | DEBUG(MTD_DEBUG_LEVEL3, "%s: called\n", __func__); | 2561 | pr_debug("%s: called\n", __func__); |
2562 | 2562 | ||
2563 | /* Grab the lock and see if the device is available */ | 2563 | /* Grab the lock and see if the device is available */ |
2564 | onenand_get_device(mtd, FL_SYNCING); | 2564 | onenand_get_device(mtd, FL_SYNCING); |
diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c index 09a7d1fb511d..3b9a2a9573c6 100644 --- a/drivers/mtd/onenand/onenand_bbt.c +++ b/drivers/mtd/onenand/onenand_bbt.c | |||
@@ -153,7 +153,7 @@ static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) | |||
153 | block = (int) (onenand_block(this, offs) << 1); | 153 | block = (int) (onenand_block(this, offs) << 1); |
154 | res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; | 154 | res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; |
155 | 155 | ||
156 | DEBUG(MTD_DEBUG_LEVEL2, "onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x\n", | 156 | pr_debug("onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x\n", |
157 | (unsigned int) offs, block >> 1, res); | 157 | (unsigned int) offs, block >> 1, res); |
158 | 158 | ||
159 | switch ((int) res) { | 159 | switch ((int) res) { |