summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-01-20 01:36:50 -0700
committerDan Williams <dan.j.williams@intel.com>2009-01-20 01:36:50 -0700
commit35f81cbbc5ecc943c959f3c7153dcf6d83d1b994 (patch)
treeff68992a54d5d3bdcaceebedcc575c4333ee1895 /super-intel.c
parenta18a888ea7944aa1718e7a0daccb6f0a13b2e34d (diff)
downloadmdadm-35f81cbbc5ecc943c959f3c7153dcf6d83d1b994.tar.gz
mdadm-35f81cbbc5ecc943c959f3c7153dcf6d83d1b994.tar.xz
mdadm-35f81cbbc5ecc943c959f3c7153dcf6d83d1b994.zip
imsm: rename vprintf macro to pr_vrb
Don't redefine standard library calls unecessarily... Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/super-intel.c b/super-intel.c
index ac0c2de..3063c7e 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -2782,7 +2782,7 @@ static int is_raid_level_supported(const struct imsm_orom *orom, int level, int
return 0;
}
-#define vprintf(fmt, arg...) (void) (verbose && fprintf(stderr, Name fmt, ##arg))
+#define pr_vrb(fmt, arg...) (void) (verbose && fprintf(stderr, Name fmt, ##arg))
/* validate_geometry_imsm_volume - lifted from validate_geometry_ddf_bvd
* FIX ME add ahci details
*/
@@ -2805,20 +2805,20 @@ static int validate_geometry_imsm_volume(struct supertype *st, int level,
return 0;
if (!is_raid_level_supported(super->orom, level, raiddisks)) {
- vprintf(": platform does not support raid level: %d\n", level);
+ pr_vrb(": platform does not support raid level: %d\n", level);
return 0;
}
if (super->orom && !imsm_orom_has_chunk(super->orom, chunk)) {
- vprintf(": platform does not support a chunk size of: %d\n", chunk);
+ pr_vrb(": platform does not support a chunk size of: %d\n", chunk);
return 0;
}
if (layout != imsm_level_to_layout(level)) {
if (level == 5)
- vprintf(": imsm raid 5 only supports the left-asymmetric layout\n");
+ pr_vrb(": imsm raid 5 only supports the left-asymmetric layout\n");
else if (level == 10)
- vprintf(": imsm raid 10 only supports the n2 layout\n");
+ pr_vrb(": imsm raid 10 only supports the n2 layout\n");
else
- vprintf(": imsm unknown layout %#x for this raid level %d\n",
+ pr_vrb(": imsm unknown layout %#x for this raid level %d\n",
layout, level);
return 0;
}