diff options
Diffstat (limited to 'fs/coda/coda_linux.h')
-rw-r--r-- | fs/coda/coda_linux.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/coda/coda_linux.h b/fs/coda/coda_linux.h index e7550cb9fb74..d42b725b1d21 100644 --- a/fs/coda/coda_linux.h +++ b/fs/coda/coda_linux.h | |||
@@ -12,6 +12,12 @@ | |||
12 | #ifndef _LINUX_CODA_FS | 12 | #ifndef _LINUX_CODA_FS |
13 | #define _LINUX_CODA_FS | 13 | #define _LINUX_CODA_FS |
14 | 14 | ||
15 | #ifdef pr_fmt | ||
16 | #undef pr_fmt | ||
17 | #endif | ||
18 | |||
19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
20 | |||
15 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
16 | #include <linux/param.h> | 22 | #include <linux/param.h> |
17 | #include <linux/mm.h> | 23 | #include <linux/mm.h> |
@@ -63,7 +69,7 @@ void coda_sysctl_clean(void); | |||
63 | else \ | 69 | else \ |
64 | ptr = (cast)vzalloc((unsigned long) size); \ | 70 | ptr = (cast)vzalloc((unsigned long) size); \ |
65 | if (!ptr) \ | 71 | if (!ptr) \ |
66 | printk("kernel malloc returns 0 at %s:%d\n", __FILE__, __LINE__); \ | 72 | pr_warn("kernel malloc returns 0 at %s:%d\n", __FILE__, __LINE__); \ |
67 | } while (0) | 73 | } while (0) |
68 | 74 | ||
69 | 75 | ||