Skip to content

Commit

Permalink
secure_storage: its: store: settings: improve debug logging
Browse files Browse the repository at this point in the history
Align the debug logging with that of the ZMS-based implementation.

Signed-off-by: Tomi Fontanilles <[email protected]>
  • Loading branch information
tomi-font committed Nov 28, 2024
1 parent d8a6fe5 commit e853d2f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions subsys/secure_storage/src/its/store/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static int init_settings_subsys(void)
const int ret = settings_subsys_init();

if (ret) {
LOG_DBG("Failed to initialize the settings subsystem. (%d)", ret);
LOG_DBG("Failed. (%d)", ret);
}
return ret;
}
Expand Down Expand Up @@ -107,9 +107,7 @@ psa_status_t secure_storage_its_store_remove(secure_storage_its_uid_t uid)

make_name(uid, name);
ret = settings_delete(name);
if (ret) {
LOG_DBG("Failed to delete %s. (%d)", name, ret);
return PSA_ERROR_STORAGE_FAILURE;
}
return PSA_SUCCESS;

LOG_DBG("%s %s. (%d)", ret ? "Failed to delete" : "Deleted", name, ret);
return ret ? PSA_ERROR_STORAGE_FAILURE : PSA_SUCCESS;
}

0 comments on commit e853d2f

Please sign in to comment.