Skip to content

Commit

Permalink
suit: Improve log levels
Browse files Browse the repository at this point in the history
Change suit logging levels in SUIT subsystem.

Ref: NCSDK-26677

Signed-off-by: Robert Stypa <[email protected]>
  • Loading branch information
robertstypa authored and nordicjm committed May 7, 2024
1 parent c1e9a33 commit f2ded02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions subsys/suit/orchestrator/src/suit_orchestrator_sdfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static int update_path(void)
LOG_ERR("Failed to validate update candidate manifest: %d", err);
return err;
}
LOG_DBG("Manifest validated");
LOG_INF("Manifest validated");

err = suit_process_sequence((uint8_t *)update_regions[0].mem, update_regions[0].size,
SUIT_SEQ_CAND_VERIFICATION);
Expand All @@ -237,7 +237,7 @@ static int update_path(void)
return SUIT_PROCESSOR_ERR_TO_ZEPHYR_ERR(err);
}

LOG_DBG("suit-install successful");
LOG_INF("suit-install successful");

return err;
}
Expand Down Expand Up @@ -289,7 +289,7 @@ static int boot_envelope(const suit_manifest_class_id_t *class_id)
return SUIT_PROCESSOR_ERR_TO_ZEPHYR_ERR(err);
}

LOG_DBG("Processed suit-validate");
LOG_INF("Processed suit-validate");

err = suit_process_sequence(installed_envelope_address, installed_envelope_size,
SUIT_SEQ_LOAD);
Expand All @@ -302,15 +302,15 @@ static int boot_envelope(const suit_manifest_class_id_t *class_id)
return SUIT_PROCESSOR_ERR_TO_ZEPHYR_ERR(err);
}
}
LOG_DBG("Processed suit-load");
LOG_INF("Processed suit-load");

err = suit_process_sequence(installed_envelope_address, installed_envelope_size,
SUIT_SEQ_INVOKE);
if (err != SUIT_SUCCESS) {
LOG_ERR("Failed to execute suit-invoke: %d", err);
return SUIT_PROCESSOR_ERR_TO_ZEPHYR_ERR(err);
}
LOG_DBG("Processed suit-invoke");
LOG_INF("Processed suit-invoke");

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion subsys/suit/platform/src/suit_plat_components.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ int suit_plat_override_image_size(suit_component_t handle, size_t size)
return SUIT_ERR_UNSUPPORTED_COMPONENT_ID;
}

LOG_INF("%s, component size: %u, input size %u", __func__, component_size, size);
LOG_DBG("%s, component size: %u, input size %u", __func__, component_size, size);

if (size > component_size) {
LOG_ERR("Input size exceeds component size");
Expand Down
2 changes: 1 addition & 1 deletion subsys/suit/storage/src/suit_storage_nrf54h20.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ suit_plat_err_t suit_storage_installed_envelope_get(const suit_manifest_class_id
return err;
}

LOG_INF("Valid envelope with given class ID and role 0x%x found", role);
LOG_DBG("Valid envelope with given class ID and role 0x%x found", role);

return err;
}
Expand Down
2 changes: 1 addition & 1 deletion subsys/suit/storage/src/suit_storage_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ suit_plat_err_t suit_storage_installed_envelope_get(const suit_manifest_class_id
return err;
}

LOG_INF("Valid envelope with given class ID and role 0x%x found", role);
LOG_DBG("Valid envelope with given class ID and role 0x%x found", role);

return err;
}
Expand Down

0 comments on commit f2ded02

Please sign in to comment.