@@ -207,7 +207,7 @@ int FileSystemStore::get(const char *key, void *buffer, size_t buffer_size, size
207
207
key_metadata_t key_metadata;
208
208
209
209
if ((status = _verify_key_file (key, &key_metadata, &kv_file)) != MBED_SUCCESS) {
210
- tr_error (" File Verification failed, status: %d" , status);
210
+ tr_debug (" File Verification failed, status: %d" , status);
211
211
goto exit_point;
212
212
}
213
213
@@ -259,7 +259,7 @@ int FileSystemStore::get_info(const char *key, info_t *info)
259
259
key_metadata_t key_metadata;
260
260
261
261
if ((status = _verify_key_file (key, &key_metadata, &kv_file)) != MBED_SUCCESS) {
262
- tr_error (" File Verification failed, status: %d" , status);
262
+ tr_debug (" File Verification failed, status: %d" , status);
263
263
goto exit_point;
264
264
}
265
265
@@ -295,9 +295,9 @@ int FileSystemStore::remove(const char *key)
295
295
/* If File Exists and is Valid, then check its Write Once Flag to verify its disabled before removing */
296
296
/* If File exists and is not valid, or is Valid and not Write-Onced then remove it */
297
297
if ((status = _verify_key_file (key, &key_metadata, &kv_file)) == MBED_SUCCESS) {
298
- tr_error (" File: %s, Exists Verifying Write Once Disabled before setting new value" , _full_path_key);
299
298
if (key_metadata.user_flags & KVStore::WRITE_ONCE_FLAG) {
300
299
kv_file.close ();
300
+ tr_error (" File: %s, Exists but write protected" , _full_path_key);
301
301
status = MBED_ERROR_WRITE_PROTECTED;
302
302
goto exit_point;
303
303
}
@@ -516,7 +516,7 @@ int FileSystemStore::iterator_next(iterator_t it, char *key, size_t key_size)
516
516
Dir *kv_dir;
517
517
struct dirent kv_dir_ent;
518
518
int status = MBED_ERROR_ITEM_NOT_FOUND;
519
- key_iterator_handle_t *key_it = NULL ;
519
+ key_iterator_handle_t *key_it;
520
520
size_t key_name_size = KVStore::MAX_KEY_SIZE;
521
521
if (key_size < key_name_size) {
522
522
key_name_size = key_size;
0 commit comments