Skip to content

Commit

Permalink
core: kernel: print node name on provider driver registering failure
Browse files Browse the repository at this point in the history
Print the name of the node when failing to register a provider driver
in DT_DRIVER framework.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
  • Loading branch information
etienne-lms authored and jforissier committed Jul 22, 2024
1 parent f4cc581 commit 39f965c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/kernel/dt_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,15 @@ TEE_Result dt_driver_register_provider(const void *fdt, int nodeoffset,

provider_cells = fdt_get_dt_driver_cells(fdt, nodeoffset, type);
if (provider_cells < 0) {
DMSG("Failed to find provider cells: %d", provider_cells);
DMSG("Failed to find provider cells: %d on node %s",
provider_cells, fdt_get_name(fdt, nodeoffset, NULL));
return TEE_ERROR_GENERIC;
}

phandle = fdt_get_phandle(fdt, nodeoffset);
if (phandle == (uint32_t)-1) {
DMSG("Failed to find provide phandle");
DMSG("Failed to find provider phandle on node %s",
fdt_get_name(fdt, nodeoffset, NULL));
return TEE_ERROR_GENERIC;
}

Expand Down

0 comments on commit 39f965c

Please sign in to comment.