From 28c984ee994fd17b7541f1f69d3dc282d2c74c6b Mon Sep 17 00:00:00 2001 From: Tomi Fontanilles Date: Wed, 27 Nov 2024 12:20:04 +0200 Subject: [PATCH] secure_storage: its: store: settings: improve debug logging Align the debug logging with that of the ZMS-based implementation. Signed-off-by: Tomi Fontanilles --- subsys/secure_storage/src/its/store/settings.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/subsys/secure_storage/src/its/store/settings.c b/subsys/secure_storage/src/its/store/settings.c index 253e29afff250d..e9725761201a16 100644 --- a/subsys/secure_storage/src/its/store/settings.c +++ b/subsys/secure_storage/src/its/store/settings.c @@ -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; } @@ -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; }