mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-01 15:15:19 -04:00
arcnet: Convert printk to pr_<level>
Use the more current logging style. Remove #define VERSION, use pr_info normally. Add pr_fmt with "arcnet:" prefixes and KBUILD_MODNAME. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
This commit is contained in:
committed by
Michael Grzeschik
parent
a34c0932c3
commit
05a24b234b
@@ -26,6 +26,8 @@
|
||||
* **********************
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/gfp.h>
|
||||
#include <linux/init.h>
|
||||
@@ -35,8 +37,6 @@
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/arcdevice.h>
|
||||
|
||||
#define VERSION "arcnet: cap mode (`c') encapsulation support loaded.\n"
|
||||
|
||||
/* packet receiver */
|
||||
static void rx(struct net_device *dev, int bufnum,
|
||||
struct archdr *pkthdr, int length)
|
||||
@@ -259,7 +259,7 @@ static void arcnet_cap_init(void)
|
||||
|
||||
static int __init capmode_module_init(void)
|
||||
{
|
||||
printk(VERSION);
|
||||
pr_info("%s\n", "cap mode (`c') encapsulation support loaded");
|
||||
arcnet_cap_init();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user