From: Tormod Volden Date: Fri, 27 Mar 2015 23:15:39 +0000 (+0100) Subject: mkfs: Print message if host endianness differs X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a1bd84ebcef6fd7c441c5c480724f05c4d9605ce;p=FUZIX.git mkfs: Print message if host endianness differs Signed-off-by: Tormod Volden --- diff --git a/Standalone/fsck.c b/Standalone/fsck.c index 379b02db..bd8dc1f7 100644 --- a/Standalone/fsck.c +++ b/Standalone/fsck.c @@ -58,8 +58,10 @@ int main(int argc, char **argv) bcopy(buf, (char *) &superblock, sizeof(struct filesys)); /* Verify the fsize and isize parameters */ - if (superblock.s_mounted == SMOUNTED_WRONGENDIAN) + if (superblock.s_mounted == SMOUNTED_WRONGENDIAN) { swizzling = 1; + printf("Detected endianness inverse of host\n"); + } if (swizzle16(superblock.s_mounted) != SMOUNTED) { printf("Device %d has invalid magic number %d. Fix? ", dev, superblock.s_mounted);