From 8b5841e9ea37d593e0668e0b67a6a74a3cf7e782 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Tue, 8 Feb 2022 21:23:12 +0100 Subject: lib/device_tree.c: Change 'printk(BIOS_DEBUG, "ERROR:' to printk(BIOS_ERR, "' Change-Id: Ie20a2c35afc2b849396ddb023b99aab33836b8de Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/61723 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Julius Werner --- src/lib/device_tree.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib/device_tree.c b/src/lib/device_tree.c index 3821e5cced..fb3ce905bf 100644 --- a/src/lib/device_tree.c +++ b/src/lib/device_tree.c @@ -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; } -- cgit v1.2.3