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>
This commit is contained in:
parent
a4a8b454e1
commit
7a8014e689
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue