···213213 u16 pot = inftl->LastFreeEUN;214214 int silly = inftl->nb_blocks;215215216216- pr_debug("INFTL: INFTL_findfreeblock(inftl=%p,"217217- "desperate=%d)\n", inftl, desperate);216216+ pr_debug("INFTL: INFTL_findfreeblock(inftl=%p,desperate=%d)\n",217217+ inftl, desperate);218218219219 /*220220 * Normally, we force a fold to happen before we run out of free221221 * blocks completely.222222 */223223 if (!desperate && inftl->numfreeEUNs < 2) {224224- pr_debug("INFTL: there are too few free "225225- "EUNs (%d)\n", inftl->numfreeEUNs);224224+ pr_debug("INFTL: there are too few free EUNs (%d)\n",225225+ inftl->numfreeEUNs);226226 return BLOCK_NIL;227227 }228228···257257 struct inftl_oob oob;258258 size_t retlen;259259260260- pr_debug("INFTL: INFTL_foldchain(inftl=%p,thisVUC=%d,"261261- "pending=%d)\n", inftl, thisVUC, pendingblock);260260+ pr_debug("INFTL: INFTL_foldchain(inftl=%p,thisVUC=%d,pending=%d)\n",261261+ inftl, thisVUC, pendingblock);262262263263 memset(BlockMap, 0xff, sizeof(BlockMap));264264 memset(BlockDeleted, 0, sizeof(BlockDeleted));···321321 * Chain, and the Erase Unit into which we are supposed to be copying.322322 * Go for it.323323 */324324- pr_debug("INFTL: folding chain %d into unit %d\n",325325- thisVUC, targetEUN);324324+ pr_debug("INFTL: folding chain %d into unit %d\n", thisVUC, targetEUN);326325327326 for (block = 0; block < inftl->EraseSize/SECTORSIZE ; block++) {328327 unsigned char movebuf[SECTORSIZE];···352353 (block * SECTORSIZE), SECTORSIZE,353354 &retlen, movebuf);354355 if (ret != -EIO)355355- pr_debug("INFTL: error went "356356- "away on retry?\n");356356+ pr_debug("INFTL: error went away on retry?\n");357357 }358358 memset(&oob, 0xff, sizeof(struct inftl_oob));359359 oob.b.Status = oob.b.Status1 = SECTOR_USED;···368370 * is important, by doing oldest first if we crash/reboot then it369371 * it is relatively simple to clean up the mess).370372 */371371- pr_debug("INFTL: want to erase virtual chain %d\n",372372- thisVUC);373373+ pr_debug("INFTL: want to erase virtual chain %d\n", thisVUC);373374374375 for (;;) {375376 /* Find oldest unit in chain. */···479482 size_t retlen;480483 int silly, silly2 = 3;481484482482- pr_debug("INFTL: INFTL_findwriteunit(inftl=%p,"483483- "block=%d)\n", inftl, block);485485+ pr_debug("INFTL: INFTL_findwriteunit(inftl=%p,block=%d)\n",486486+ inftl, block);484487485488 do {486489 /*···496499 blockofs, 8, &retlen, (char *)&bci);497500498501 status = bci.Status | bci.Status1;499499- pr_debug("INFTL: status of block %d in "500500- "EUN %d is %x\n", block , writeEUN, status);502502+ pr_debug("INFTL: status of block %d in EUN %d is %x\n",503503+ block , writeEUN, status);501504502505 switch(status) {503506 case SECTOR_FREE:···550553 * Hopefully we free something, lets try again.551554 * This time we are desperate...552555 */553553- pr_debug("INFTL: using desperate==1 "554554- "to find free EUN to accommodate write to "555555- "VUC %d\n", thisVUC);556556+ pr_debug("INFTL: using desperate==1 to find free EUN "557557+ "to accommodate write to VUC %d\n",558558+ thisVUC);556559 writeEUN = INFTL_findfreeblock(inftl, 1);557560 if (writeEUN == BLOCK_NIL) {558561 /*
···763763764764 find_bit = (ecc_bit[5] << 2) + (ecc_bit[3] << 1) + ecc_bit[1];765765766766- pr_debug("Correcting single bit ECC error at "767767- "offset: %d, bit: %d\n", find_byte, find_bit);766766+ pr_debug("Correcting single bit ECC error at offset: "767767+ "%d, bit: %d\n", find_byte, find_bit);768768769769 page_data[find_byte] ^= (1 << find_bit);770770
+16-15
drivers/mtd/onenand/onenand_base.c
···11221122 int ret = 0;11231123 int writesize = this->writesize;1124112411251125- pr_debug("%s: from = 0x%08x, len = %i\n",11261126- __func__, (unsigned int) from, (int) len);11251125+ pr_debug("%s: from = 0x%08x, len = %i\n", __func__, (unsigned int)from,11261126+ (int)len);1127112711281128 if (ops->mode == MTD_OOB_AUTO)11291129 oobsize = this->ecclayout->oobavail;···12261226 int ret = 0, boundary = 0;12271227 int writesize = this->writesize;1228122812291229- pr_debug("%s: from = 0x%08x, len = %i\n",12301230- __func__, (unsigned int) from, (int) len);12291229+ pr_debug("%s: from = 0x%08x, len = %i\n", __func__, (unsigned int)from,12301230+ (int)len);1231123112321232 if (ops->mode == MTD_OOB_AUTO)12331233 oobsize = this->ecclayout->oobavail;···1357135713581358 from += ops->ooboffs;1359135913601360- pr_debug("%s: from = 0x%08x, len = %i\n",13611361- __func__, (unsigned int) from, (int) len);13601360+ pr_debug("%s: from = 0x%08x, len = %i\n", __func__, (unsigned int)from,13611361+ (int)len);1362136213631363 /* Initialize return length value */13641364 ops->oobretlen = 0;···15761576 size_t len = ops->ooblen;15771577 u_char *buf = ops->oobbuf;1578157815791579- pr_debug("%s: from = 0x%08x, len = %zi\n",15801580- __func__, (unsigned int) from, len);15791579+ pr_debug("%s: from = 0x%08x, len = %zi\n", __func__, (unsigned int)from,15801580+ len);1581158115821582 /* Initialize return value */15831583 ops->oobretlen = 0;···17501750 /* Wait for any existing operation to clear */17511751 onenand_panic_wait(mtd);1752175217531753- pr_debug("%s: to = 0x%08x, len = %i\n",17541754- __func__, (unsigned int) to, (int) len);17531753+ pr_debug("%s: to = 0x%08x, len = %i\n", __func__, (unsigned int)to,17541754+ (int)len);1755175517561756 /* Initialize retlen, in case of early exit */17571757 *retlen = 0;···18831883 u_char *oobbuf;18841884 int ret = 0, cmd;1885188518861886- pr_debug("%s: to = 0x%08x, len = %i\n",18871887- __func__, (unsigned int) to, (int) len);18861886+ pr_debug("%s: to = 0x%08x, len = %i\n", __func__, (unsigned int)to,18871887+ (int)len);1888188818891889 /* Initialize retlen, in case of early exit */18901890 ops->retlen = 0;···2078207820792079 to += ops->ooboffs;2080208020812081- pr_debug("%s: to = 0x%08x, len = %i\n",20822082- __func__, (unsigned int) to, (int) len);20812081+ pr_debug("%s: to = 0x%08x, len = %i\n", __func__, (unsigned int)to,20822082+ (int)len);2083208320842084 /* Initialize retlen, in case of early exit */20852085 ops->oobretlen = 0;···24902490 loff_t region_offset = 0;2491249124922492 pr_debug("%s: start=0x%012llx, len=%llu\n", __func__,24932493- (unsigned long long) instr->addr, (unsigned long long) instr->len);24932493+ (unsigned long long)instr->addr,24942494+ (unsigned long long)instr->len);2494249524952496 /* Do not allow erase past end of device */24962497 if (unlikely((len + addr) > mtd->size)) {