Commit 5c73a3fba6dd2b410de378f648bc9851ffa7201a

Authored by Greg Kroah-Hartman
1 parent 475c5a1518

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>

Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff

... ... @@ -202,14 +202,14 @@
202 202  
203 203 /* be noisy on error issues */
204 204 if (error == -EEXIST)
205   - printk("kobject_add failed for %s with -EEXIST, "
206   - "don't try to register things with the "
207   - "same name in the same directory.\n",
  205 + printk(KERN_ERR "kobject_add failed for %s with "
  206 + "-EEXIST, don't try to register things with "
  207 + "the same name in the same directory.\n",
208 208 kobject_name(kobj));
209 209 else
210   - printk("kobject_add failed for %s (%d)\n",
  210 + printk(KERN_ERR "kobject_add failed for %s (%d)\n",
211 211 kobject_name(kobj), error);
212   - dump_stack();
  212 + dump_stack();
213 213 }
214 214  
215 215 return error;