From: Keith Owens Date: Fri, 22 Jun 2001 13:39:31 +0000 (+0000) Subject: gcc 3.0 fix X-Git-Tag: v1.3.0~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=150a512d1277aea28d4fe86bb3b5f46c79017d34;p=thirdparty%2Fxfsprogs-dev.git gcc 3.0 fix --- diff --git a/logprint/log_misc.c b/logprint/log_misc.c index 5ff2ac830..76d492aa4 100644 --- a/logprint/log_misc.c +++ b/logprint/log_misc.c @@ -220,13 +220,15 @@ xlog_print_trans_header(xfs_caddr_t *ptr, int len) magic=*(__uint32_t*)cptr; /* XXX INT_GET soon */ - if (len >= 4) - printf("%c%c%c%c:", + if (len >= 4) { #if __BYTE_ORDER == __LITTLE_ENDIAN + printf("%c%c%c%c:", magic_c[3], magic_c[2], magic_c[1], magic_c[0]); #else + printf("%c%c%c%c:", magic_c[0], magic_c[1], magic_c[2], magic_c[3]); #endif + } if (len != sizeof(xfs_trans_header_t)) { printf(" Not enough data to decode further\n"); return 1;