Skip to content

Commit 23a6a78

Browse files
tomi-fontfabiobaltieri
authored andcommitted
secure_storage: its: store: settings: improve debug logging
Align the debug logging with that of the ZMS-based implementation. Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 9ef6788 commit 23a6a78

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

subsys/secure_storage/src/its/store/settings.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static int init_settings_subsys(void)
2020
const int ret = settings_subsys_init();
2121

2222
if (ret) {
23-
LOG_DBG("Failed to initialize the settings subsystem. (%d)", ret);
23+
LOG_DBG("Failed. (%d)", ret);
2424
}
2525
return ret;
2626
}
@@ -107,9 +107,7 @@ psa_status_t secure_storage_its_store_remove(secure_storage_its_uid_t uid)
107107

108108
make_name(uid, name);
109109
ret = settings_delete(name);
110-
if (ret) {
111-
LOG_DBG("Failed to delete %s. (%d)", name, ret);
112-
return PSA_ERROR_STORAGE_FAILURE;
113-
}
114-
return PSA_SUCCESS;
110+
111+
LOG_DBG("%s %s. (%d)", ret ? "Failed to delete" : "Deleted", name, ret);
112+
return ret ? PSA_ERROR_STORAGE_FAILURE : PSA_SUCCESS;
115113
}

0 commit comments

Comments
 (0)