X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fbrc_procfs.c;h=bf328c9b8d264c10da549689077723b6b6508224;hb=b279fccf5bd8c5addfb8e73b04103405b6a8237e;hp=cfe0175b3e57c327832ec141eb0de35da853abcb;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch diff --git a/datapath/brc_procfs.c b/datapath/brc_procfs.c index cfe0175b..bf328c9b 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);