From: NeilBrown Date: Tue, 30 Nov 2010 05:25:26 +0000 (+1100) Subject: Fix warning about host-endian bitmaps. X-Git-Tag: mdadm-3.2~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3bd581b1d9afa3805367632b99d0455d3f2d014;p=thirdparty%2Fmdadm.git Fix warning about host-endian bitmaps. Hostendian bitmaps should be warned about on all arch's. And fix a speeling mistake. Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index d7c75532..8ce4d32e 100644 --- a/Grow.c +++ b/Grow.c @@ -228,10 +228,10 @@ int Grow_addbitmap(char *devname, int fd, char *file, int chunk, int delay, int if (vers < 9003) { major = BITMAP_MAJOR_HOSTENDIAN; -#ifdef __BIG_ENDIAN - fprintf(stderr, Name ": Warning - bitmaps created on this kernel are not portable\n" - " between different architectured. Consider upgrading the Linux kernel.\n"); -#endif + fprintf(stderr, Name ": Warning - bitmaps created on this kernel" + " are not portable\n" + " between different architectures. Consider upgrading" + " the Linux kernel.\n"); } if (ioctl(fd, GET_BITMAP_FILE, &bmf) != 0) {