diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-03-15 09:34:07 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-03-15 09:34:07 -0600 |
commit | a901493202a93feb2d98a8fe9ee751dc645a4e44 (patch) | |
tree | 1363cc37967e52ed52176304870f863572ecfdd9 /nuttx/drivers | |
parent | e1efd39ce587f4e9e4d8be1fa241a4fd76f2d414 (diff) | |
download | px4-nuttx-a901493202a93feb2d98a8fe9ee751dc645a4e44.tar.gz px4-nuttx-a901493202a93feb2d98a8fe9ee751dc645a4e44.tar.bz2 px4-nuttx-a901493202a93feb2d98a8fe9ee751dc645a4e44.zip |
Fix some bad logic when file system debug is turned on: Arguments to syslog were missing so that garbage was being printed.
Diffstat (limited to 'nuttx/drivers')
-rwxr-xr-x | nuttx/drivers/mmcsd/mmcsd_sdio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd_sdio.c b/nuttx/drivers/mmcsd/mmcsd_sdio.c index 3c1fd9bdc..811c4ed33 100755 --- a/nuttx/drivers/mmcsd/mmcsd_sdio.c +++ b/nuttx/drivers/mmcsd/mmcsd_sdio.c @@ -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) |