From: Dmitry V. Levin Date: Wed, 4 May 2016 21:43:18 +0000 (+0000) Subject: tests/xstatfsx.c: fix mips o32 support X-Git-Tag: v4.12~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcb18a6fd53fc3c8c41c449a4308539103a09c9c;p=strace tests/xstatfsx.c: fix mips o32 support mips o32 differs from all other 32-bit architectures by defining __kernel_fsid_t structure as an array of long ints. * tests/xstatfsx.c (print_statfs): Explicitly cast elements of PRINT_F_FSID array to unsigned int. --- diff --git a/tests/xstatfsx.c b/tests/xstatfsx.c index 8e54fce5..35618663 100644 --- a/tests/xstatfsx.c +++ b/tests/xstatfsx.c @@ -81,7 +81,8 @@ print_statfs(const char *const sample, const char *magic_str) PRINT_NUM(f_files); PRINT_NUM(f_ffree); #ifdef PRINT_F_FSID - printf(", f_fsid={%u, %u}", b->PRINT_F_FSID[0], b->PRINT_F_FSID[1]); + printf(", f_fsid={%u, %u}", + (unsigned) b->PRINT_F_FSID[0], (unsigned) b->PRINT_F_FSID[1]); #endif PRINT_NUM(f_namelen); #ifdef PRINT_F_FRSIZE