X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fbrc_procfs.c;h=bf328c9b8d264c10da549689077723b6b6508224;hb=dfffaef1eb2c0156432a3cf203fd8348651da912;hp=cfe0175b3e57c327832ec141eb0de35da853abcb;hpb=717d33b99ee3a35f8160c6551931154d3a062910;p=sliver-openvswitch.git diff --git a/datapath/brc_procfs.c b/datapath/brc_procfs.c index cfe0175b3..bf328c9b8 100644 --- a/datapath/brc_procfs.c +++ b/datapath/brc_procfs.c @@ -6,6 +6,8 @@ * kernel, by Linus Torvalds and others. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -69,9 +71,9 @@ static struct proc_dir_entry *brc_open_dir(const char *dir_name, if (!*dirp) { struct proc_dir_entry *dir; if (brc_lookup_entry(parent, dir_name)) { - printk(KERN_WARNING "%s proc directory exists, can't " - "simulate--probably its real module is " - "loaded\n", dir_name); + pr_warn("%s proc directory exists, can't simulate--" + "probably its real module is loaded\n", + dir_name); return NULL; } dir = *dirp = proc_mkdir(dir_name, parent);