From e02744a884ab66a27b3394155004e530b816c230 Mon Sep 17 00:00:00 2001 From: Yveaux Date: Sun, 1 Oct 2023 10:02:51 +0200 Subject: [PATCH] Took the real LFS 2.5.1. release, fixing spurious characters --- src/littlefs-v2.5.1/lfs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/littlefs-v2.5.1/lfs.c b/src/littlefs-v2.5.1/lfs.c index 476436f..26280fa 100644 --- a/src/littlefs-v2.5.1/lfs.c +++ b/src/littlefs-v2.5.1/lfs.c @@ -1986,7 +1986,7 @@ static int lfs_dir_splittingcompact(lfs_t *lfs, lfs_mdir_t *dir, } if (err) { - // whelp, we tried, if we ran out of space there's not much + // welp, we tried, if we ran out of space there's not much // we can do, we'll error later if we've become frozen LFS_WARN("Unable to expand superblock"); } else { @@ -2340,7 +2340,7 @@ static int lfs_dir_orphaningcommit(lfs_t *lfs, lfs_mdir_t *dir, lfs_fs_prepmove(lfs, 0x3ff, NULL); } - // replace bad pair, either we clean up desync, or no desync occurred + // replace bad pair, either we clean up desync, or no desync occured lpair[0] = pdir.pair[0]; lpair[1] = pdir.pair[1]; lfs_pair_tole32(ldir.pair); @@ -5763,7 +5763,7 @@ lfs_ssize_t lfs_fs_size(lfs_t *lfs) { LFS_TRACE("lfs_fs_size(%p)", (void*)lfs); lfs_ssize_t res = lfs_fs_rawsize(lfs); - 1989 + LFS_TRACE("lfs_fs_size -> %"PRId32, res); LFS_UNLOCK(lfs->cfg); return res; @@ -5814,3 +5814,4 @@ int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg) { return err; } #endif +