[PATCH 1/3] [RFC] Print a device-tree message at KERN_WARNING level

Paul Bolle pebolle at tiscali.nl
Thu Feb 3 22:07:59 UTC 2011


For the message
    /proc/device-tree: can't find root

KERN_WARNING seems to be more appropriate than KERN_ERR. (Main benefit
of the KERN_WARNING level is that Fedora's plymouth bootsplash should
now hide it.)

Signed-off-by: Paul Bolle <pebolle at tiscali.nl>
---
 fs/proc/proc_devtree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c
index d9396a4..71dd779 100644
--- a/fs/proc/proc_devtree.c
+++ b/fs/proc/proc_devtree.c
@@ -233,7 +233,7 @@ void __init proc_device_tree_init(void)
 		return;
 	root = of_find_node_by_path("/");
 	if (root == NULL) {
-		printk(KERN_ERR "/proc/device-tree: can't find root\n");
+		printk(KERN_WARNING "/proc/device-tree: can't find root\n");
 		return;
 	}
 	proc_device_tree_add_node(root, proc_device_tree);
-- 
1.7.4






More information about the kernel mailing list