From b3bd581b1d9afa3805367632b99d0455d3f2d014 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 30 Nov 2010 16:25:26 +1100 Subject: [PATCH] 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 --- Grow.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Grow.c b/Grow.c index d7c7553..8ce4d32 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) {