summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorBlazej Kucman <blazej.kucman@intel.com>2024-03-22 12:51:15 +0100
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-04-02 08:27:35 +0200
commitcc75b0faaa016e54d569486c9a7abe6c39cb883a (patch)
tree90122a0dcd6bbbedac56515ca9e5df6aeecde807 /mdadm.h
parentRemove all "if zeros" pt.2 (diff)
downloadmdadm-cc75b0faaa016e54d569486c9a7abe6c39cb883a.tar.xz
mdadm-cc75b0faaa016e54d569486c9a7abe6c39cb883a.zip
mdadm: Move pr_vrb define to mdadm.h
Move pr_vrb define from super-intel.c to mdadm.h to make it widely available. This change will be used in the next patches. Signed-off-by: Blazej Kucman <blazej.kucman@intel.com> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index ae2106a2..fbb161ba 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1911,6 +1911,8 @@ static inline int xasprintf(char **strp, const char *fmt, ...) {
#define pr_info(fmt, args...) printf("%s: "fmt, Name, ##args)
+#define pr_vrb(fmt, arg...) ((void)(verbose && pr_err(fmt, ##arg)))
+
void *xmalloc(size_t len);
void *xrealloc(void *ptr, size_t len);
void *xcalloc(size_t num, size_t size);