summaryrefslogtreecommitdiff
path: root/libbcache/bcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcache/bcache.h')
-rw-r--r--libbcache/bcache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbcache/bcache.h b/libbcache/bcache.h
index 9a43a69..309d372 100644
--- a/libbcache/bcache.h
+++ b/libbcache/bcache.h
@@ -210,8 +210,9 @@
#define bch_meta_write_fault(name) \
dynamic_fault("bcache:meta:write:" name)
-#define bch_fmt(_c, fmt) \
- "bcache (%s): " fmt "\n", ((_c)->name)
+#ifndef bch_fmt
+#define bch_fmt(_c, fmt) "bcache (%s): " fmt "\n", ((_c)->name)
+#endif
#define bch_info(c, fmt, ...) \
printk(KERN_INFO bch_fmt(c, fmt), ##__VA_ARGS__)