Skip to content

Commit 0320e7d

Browse files
committed
Changed cast to correct type when trace is enabled for filebd
1 parent 0494ce7 commit 0320e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bd/lfs_filebd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int lfs_filebd_prog(const struct lfs_config *cfg, lfs_block_t block,
133133

134134
int lfs_filebd_erase(const struct lfs_config *cfg, lfs_block_t block) {
135135
LFS_FILEBD_TRACE("lfs_filebd_erase(%p, 0x%"PRIx32" (%"PRIu32"))",
136-
(void*)cfg, block, ((lfs_file_t*)cfg->context)->cfg->erase_size);
136+
(void*)cfg, block, ((lfs_filebd_t*)cfg->context)->cfg->erase_size);
137137
lfs_filebd_t *bd = cfg->context;
138138

139139
// check if erase is valid

0 commit comments

Comments
 (0)