aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-06-07 18:05:15 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-06-08 15:41:08 -0400
commit5c73a3fba6dd2b410de378f648bc9851ffa7201a (patch)
tree463d40059803f3c43156eb66288738754b37993c /lib
parent475c5a1518477f0301fc50dc59e690032fad1fef (diff)
kobject: use the proper printk level for kobject error
Thanks to Jean Delvare <khali@linux-fr.org> for pointing it out to me. Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index fc5f3f6e7329..ac1520651b9b 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -202,14 +202,14 @@ int kobject_shadow_add(struct kobject * kobj, struct dentry *shadow_parent)
202 202
203 /* be noisy on error issues */ 203 /* be noisy on error issues */
204 if (error == -EEXIST) 204 if (error == -EEXIST)
205 printk("kobject_add failed for %s with -EEXIST, " 205 printk(KERN_ERR "kobject_add failed for %s with "
206 "don't try to register things with the " 206 "-EEXIST, don't try to register things with "
207 "same name in the same directory.\n", 207 "the same name in the same directory.\n",
208 kobject_name(kobj)); 208 kobject_name(kobj));
209 else 209 else
210 printk("kobject_add failed for %s (%d)\n", 210 printk(KERN_ERR "kobject_add failed for %s (%d)\n",
211 kobject_name(kobj), error); 211 kobject_name(kobj), error);
212 dump_stack(); 212 dump_stack();
213 } 213 }
214 214
215 return error; 215 return error;