From: Dan Williams Date: Tue, 20 Jan 2009 08:36:50 +0000 (-0700) Subject: imsm: rename vprintf macro to pr_vrb X-Git-Tag: mdadm-3.0-devel3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35f81cbbc5ecc943c959f3c7153dcf6d83d1b994;p=thirdparty%2Fmdadm.git imsm: rename vprintf macro to pr_vrb Don't redefine standard library calls unecessarily... Signed-off-by: Dan Williams --- diff --git a/super-intel.c b/super-intel.c index ac0c2de8..3063c7e2 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; }