lib/device_tree.c: Change 'printk(BIOS_DEBUG, "ERROR:' to printk(BIOS_ERR, "'

Change-Id: Ie20a2c35afc2b849396ddb023b99aab33836b8de
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61723
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Elyes HAOUAS 2022-02-08 21:23:12 +01:00 committed by Felix Held
parent 08d2016e50
commit 8b5841e9ea
1 changed files with 4 additions and 5 deletions

View File

@ -1501,7 +1501,7 @@ int dt_apply_overlay(struct device_tree *tree, struct device_tree *overlay)
uint32_t phandle_base = tree->max_phandle;
uint32_t new_max = dt_adjust_all_phandles(overlay->root, phandle_base);
if (!new_max) {
printk(BIOS_DEBUG, "ERROR: invalid phandles in overlay\n");
printk(BIOS_ERR, "invalid phandles in overlay\n");
return -1;
}
tree->max_phandle = new_max;
@ -1512,7 +1512,7 @@ int dt_apply_overlay(struct device_tree *tree, struct device_tree *overlay)
"/__local_fixups__", NULL, NULL, 0);
if (local_fixups && dt_fixup_locals(overlay->root, local_fixups,
phandle_base) < 0) {
printk(BIOS_DEBUG, "ERROR: invalid local fixups in overlay\n");
printk(BIOS_ERR, "invalid local fixups in overlay\n");
return -1;
}
@ -1536,8 +1536,7 @@ int dt_apply_overlay(struct device_tree *tree, struct device_tree *overlay)
"/__symbols__", NULL, NULL, 0);
if (fixups && dt_fixup_all_externals(tree, symbols, overlay,
fixups, overlay_symbols) < 0) {
printk(BIOS_DEBUG,
"ERROR: cannot match external fixups from overlay\n");
printk(BIOS_ERR, "cannot match external fixups from overlay\n");
return -1;
}
@ -1546,7 +1545,7 @@ int dt_apply_overlay(struct device_tree *tree, struct device_tree *overlay)
struct device_tree_node *fragment;
list_for_each(fragment, overlay->root->children, list_node)
if (dt_import_fragment(tree, fragment, overlay_symbols) < 0) {
printk(BIOS_DEBUG, "ERROR: bad DT fragment '%s'\n",
printk(BIOS_ERR, "bad DT fragment '%s'\n",
fragment->name);
return -1;
}