]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm: Move pr_vrb define to mdadm.h
authorBlazej Kucman <blazej.kucman@intel.com>
Fri, 22 Mar 2024 11:51:15 +0000 (12:51 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 2 Apr 2024 06:27:35 +0000 (08:27 +0200)
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>
mdadm.h
super-intel.c

diff --git a/mdadm.h b/mdadm.h
index ae2106a2f28fe8de0c474a6fb10c7b1edbb20ea9..fbb161ba4dc2bfa5ced6326ccc7b125655f3ed5a 100644 (file)
--- 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);
index 70f3c4efcde7d2c4353a4ca1cdae2b82fa4b676c..212387ecd88d72faa5af09399703c61c1ecb413d 100644 (file)
@@ -393,8 +393,6 @@ struct md_list {
        struct md_list *next;
 };
 
-#define pr_vrb(fmt, arg...) (void) (verbose && pr_err(fmt, ##arg))
-
 static __u8 migr_type(struct imsm_dev *dev)
 {
        if (dev->vol.migr_type == MIGR_VERIFY &&