Tweaked debug output

- Changed "No more free space" to be an error as suggested by davidefer
- Tweaked output to be more parsable (no space between lfs and warn)
This commit is contained in:
Christopher Haster
2019-07-16 15:40:26 -05:00
parent 6a1ee91490
commit e279c8ff90
2 changed files with 5 additions and 5 deletions

2
lfs.c
View File

@@ -471,7 +471,7 @@ static int lfs_alloc(lfs_t *lfs, lfs_block_t *block) {
// check if we have looked at all blocks since last ack
if (lfs->free.ack == 0) {
LFS_WARN("No more free space %"PRIu32,
LFS_ERROR("No more free space %"PRIu32,
lfs->free.i + lfs->free.off);
return LFS_ERR_NOSPC;
}