summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-03-08 12:59:39 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-09 11:18:04 +0100
commit7a8014e6891168846a64c3d104f246ecb1f1d673 (patch)
tree3f3a399a5bd80f37f15ea297e6bcdd268bdba3b5 /net
parenta4a8b454e144dce04efe0a208d49735522961475 (diff)
downloadbarebox-7a8014e6891168846a64c3d104f246ecb1f1d673.tar.gz
barebox-7a8014e6891168846a64c3d104f246ecb1f1d673.tar.xz
net/console: switch to pr_xxx
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/netconsole.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/netconsole.c b/net/netconsole.c
index 7d0f3f4c13..960de8d437 100644
--- a/net/netconsole.c
+++ b/net/netconsole.c
@@ -17,6 +17,8 @@
*
*/
+#define pr_fmt(fmt) "netconsole: " fmt
+
#include <common.h>
#include <command.h>
#include <fs.h>
@@ -185,7 +187,7 @@ static int netconsole_init(void)
ret = console_register(cdev);
if (ret) {
- printf("netconsole: registering failed with %s\n", strerror(-ret));
+ pr_err("registering failed with %s\n", strerror(-ret));
kfree(priv);
return ret;
}
@@ -194,7 +196,7 @@ static int netconsole_init(void)
dev_add_param(&cdev->class_dev, "port", nc_port_set, NULL, 0);
dev_set_param(&cdev->class_dev, "port", "6666");
- printf("registered netconsole as %s%d\n", cdev->class_dev.name, cdev->class_dev.id);
+ pr_info("registered as %s%d\n", cdev->class_dev.name, cdev->class_dev.id);
return 0;
}