diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-02 19:00:59 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-02 19:00:59 -0600 |
commit | bb6956f7effefaa6113a5f75b243166a396cc928 (patch) | |
tree | fbb18d0cde7e473a480972641daa22e2eed42fab /nuttx/fs/nxffs/nxffs_write.c | |
parent | 76b47516f6537ae7a542d63476ae0a709addedd0 (diff) | |
download | px4-nuttx-bb6956f7effefaa6113a5f75b243166a396cc928.tar.gz px4-nuttx-bb6956f7effefaa6113a5f75b243166a396cc928.tar.bz2 px4-nuttx-bb6956f7effefaa6113a5f75b243166a396cc928.zip |
Cosmetic changes to debug output
Diffstat (limited to 'nuttx/fs/nxffs/nxffs_write.c')
-rw-r--r-- | nuttx/fs/nxffs/nxffs_write.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/fs/nxffs/nxffs_write.c b/nuttx/fs/nxffs/nxffs_write.c index 29f972697..19d3fea59 100644 --- a/nuttx/fs/nxffs/nxffs_write.c +++ b/nuttx/fs/nxffs/nxffs_write.c @@ -483,7 +483,7 @@ ssize_t nxffs_write(FAR struct file *filep, FAR const char *buffer, size_t bufle if ((wrfile->ofile.oflags & O_WROK) == 0) { - fdbg("File not open for write access\n"); + fdbg("ERROR: File not open for write access\n"); ret = -EACCES; goto errout_with_semaphore; } @@ -623,7 +623,7 @@ int nxffs_wrreserve(FAR struct nxffs_volume_s *volume, size_t size) { /* Return -ENOSPC to indicate that the volume is full */ - fdbg("No space in last block\n"); + fdbg("ERROR: No space in last block\n"); return -ENOSPC; } @@ -635,9 +635,10 @@ int nxffs_wrreserve(FAR struct nxffs_volume_s *volume, size_t size) ret = nxffs_validblock(volume, &volume->ioblock); if (ret < 0) { - fdbg("No more valid blocks\n"); + fdbg("ERROR: No more valid blocks\n"); return ret; } + volume->iooffset = SIZEOF_NXFFS_BLOCK_HDR; } @@ -769,7 +770,7 @@ int nxffs_wrverify(FAR struct nxffs_volume_s *volume, size_t size) ret = nxffs_validblock(volume, &volume->ioblock); if (ret < 0) { - fdbg("No more valid blocks\n"); + fdbg("ERROR: No more valid blocks\n"); return ret; } @@ -781,7 +782,7 @@ int nxffs_wrverify(FAR struct nxffs_volume_s *volume, size_t size) * the object. */ - fdbg("Not enough memory left to hold the file header\n"); + fdbg("ERROR: Not enough memory left to hold the file header\n"); return -ENOSPC; } |