Skip to content
Snippets Groups Projects
Commit 8aa57a95 authored by Andreas Dannenberg's avatar Andreas Dannenberg Committed by Tom Rini
Browse files

spl: fit: Fix non-matching DT names console output


When no DTB can be matched successfully to the board that's being used
a list of available FIT-embedded DTBs will be output to the console for
diagnostic purposes. But rather than the contents of the "description"
FDT property a non-existent property was accessed and as a result "NULL"
was output instead of the actual name(s) of the DTB(s). Fix this issue
by using the correct property which is also the exact same property
that's used earlier during the actual board matching process.

Signed-off-by: default avatarAndreas Dannenberg <dannenberg@ti.com>
parent 715b3a9b
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ static int spl_fit_select_fdt(const void *fdt, int images, int *fdt_offsetp) ...@@ -77,7 +77,7 @@ static int spl_fit_select_fdt(const void *fdt, int images, int *fdt_offsetp)
for (node = fdt_first_subnode(fdt, conf); for (node = fdt_first_subnode(fdt, conf);
node >= 0; node >= 0;
node = fdt_next_subnode(fdt, node)) { node = fdt_next_subnode(fdt, node)) {
name = fdt_getprop(fdt, node, "name", &len); name = fdt_getprop(fdt, node, "description", &len);
printf(" %s\n", name); printf(" %s\n", name);
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment