Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShiven Gupta <shiven.gupta@gmail.com>2020-08-19 00:36:14 +0300
committerShiven Gupta <shiven.gupta@gmail.com>2020-08-19 00:36:14 +0300
commit87a2cb0e41b95c492808bfbf657c913d24d35617 (patch)
tree7f4d42afc76eb06157c58ce1c985efdb47f84d98
parent4c9146ea539f72749d6cc3ea076372a81b12cb11 (diff)
Fix assertfix-assert
-rw-r--r--bd/lfs_testbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bd/lfs_testbd.c b/bd/lfs_testbd.c
index 1ec6fb9..9d3f40c 100644
--- a/bd/lfs_testbd.c
+++ b/bd/lfs_testbd.c
@@ -207,7 +207,7 @@ int lfs_testbd_prog(const struct lfs_config *cfg, lfs_block_t block,
bd->power_cycles -= 1;
if (bd->power_cycles == 0) {
// sync to make sure we persist the last changes
- assert(lfs_testbd_rawsync(cfg) == 0);
+ LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0);
// simulate power loss
exit(33);
}
@@ -254,7 +254,7 @@ int lfs_testbd_erase(const struct lfs_config *cfg, lfs_block_t block) {
bd->power_cycles -= 1;
if (bd->power_cycles == 0) {
// sync to make sure we persist the last changes
- assert(lfs_testbd_rawsync(cfg) == 0);
+ LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0);
// simulate power loss
exit(33);
}