Skip to content

Commit 3fd8f1b

Browse files
authored
Merge pull request #9825 from davidsaada/david_fsst_remove_unnecessary_prints
Remove unnecessary prints in FileSystemStore class
2 parents 0d3fba8 + 671c5a0 commit 3fd8f1b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

features/storage/kvstore/filesystemstore/FileSystemStore.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int FileSystemStore::init()
9393
tr_info("KV Dir: %s, doesnt exist - creating new.. ", _cfg_fs_path); //TBD verify ERRNO NOEXIST
9494
if (_fs->mkdir(_cfg_fs_path,/* which flags ? */0777) != 0) {
9595
tr_error("KV Dir: %s, mkdir failed.. ", _cfg_fs_path); //TBD verify ERRNO NOEXIST
96-
status = MBED_ERROR_FAILED_OPERATION ;
96+
status = MBED_ERROR_FAILED_OPERATION;
9797
goto exit_point;
9898
}
9999
} else {
@@ -138,9 +138,7 @@ int FileSystemStore::reset()
138138
kv_dir.open(_fs, _cfg_fs_path);
139139

140140
while (kv_dir.read(&dir_ent) != 0) {
141-
tr_info("Looping FSST folder: %s, File - %s", _cfg_fs_path, dir_ent.d_name);
142141
if (dir_ent.d_type != DT_REG) {
143-
tr_error("KV_Dir should contain only Regular File - %s", dir_ent.d_name);
144142
continue;
145143
}
146144
// Build File's full path name and delete it (even if write-onced)
@@ -354,7 +352,6 @@ int FileSystemStore::set_start(set_handle_t *handle, const char *key, size_t fin
354352
}
355353

356354
if (status == MBED_SUCCESS) {
357-
tr_info("File: %s, Exists. Verifying Write Once Disabled before setting new value", _full_path_key);
358355
if (key_metadata.user_flags & KVStore::WRITE_ONCE_FLAG) {
359356
kv_file->close();
360357
status = MBED_ERROR_WRITE_PROTECTED;
@@ -544,7 +541,6 @@ int FileSystemStore::iterator_next(iterator_t it, char *key, size_t key_size)
544541

545542
while (kv_dir->read(&kv_dir_ent) != 0) {
546543
if (kv_dir_ent.d_type != DT_REG) {
547-
tr_error("KV_Dir should contain only Regular File - %s", kv_dir_ent.d_name);
548544
continue;
549545
}
550546

@@ -605,7 +601,6 @@ int FileSystemStore::_verify_key_file(const char *key, key_metadata_t *key_metad
605601
_build_full_path_key(key);
606602

607603
if (0 != kv_file->open(_fs, _full_path_key, O_RDONLY)) {
608-
tr_info("Couldn't read: %s", _full_path_key);
609604
status = MBED_ERROR_ITEM_NOT_FOUND;
610605
goto exit_point;
611606
}

0 commit comments

Comments
 (0)