Fix some bad logic when file system debug is turned on: Arguments to syslog were missing so that garbage was being printed.

This commit is contained in:
Gregory Nutt 2015-03-15 09:34:07 -06:00
parent 7adc1b96c9
commit 8783526a5f

View File

@ -1759,7 +1759,7 @@ static ssize_t mmcsd_writemultiple(FAR struct mmcsd_state_s *priv,
size_t nbytes;
int ret;
fvdbg("startblockr=%d nblocks=%d\n", startblock, nblocks);
fvdbg("startblock=%d nblocks=%d\n", startblock, nblocks);
DEBUGASSERT(priv != NULL && buffer != NULL && nblocks > 1);
/* Check if the card is locked or write protected (either via software or
@ -2124,10 +2124,12 @@ static ssize_t mmcsd_write(FAR struct inode *inode, FAR const unsigned char *buf
#endif
ssize_t ret = nsectors;
fvdbg("sector: %d nsectors: %d sectorsize: %d\n");
DEBUGASSERT(inode && inode->i_private);
priv = (FAR struct mmcsd_state_s *)inode->i_private;
fvdbg("sector: %lu nsectors: %u sectorsize: %u\n",
(unsigned long)startsector, nsectors, priv->blocksize);
mmcsd_takesem(priv);
#if defined(CONFIG_DRVR_WRITEBUFFER)