From: Roland McGrath Date: Tue, 7 Aug 2007 01:05:19 +0000 (+0000) Subject: 2007-08-05 Jan Kratochvil X-Git-Tag: v4.5.18~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7bd4d321d82e7396b9282ee1b80a498d2785f19;p=strace 2007-08-05 Jan Kratochvil * file.c (printstat64): Test [HAVE_LONG_LONG] for st_size printing and cast to widest type available. --- diff --git a/file.c b/file.c index 22a8260c..6e6b3067 100644 --- a/file.c +++ b/file.c @@ -1061,7 +1061,11 @@ long addr; #endif /* !HAVE_STRUCT_STAT_ST_RDEV */ break; default: - tprintf("st_size=%llu, ", statbuf.st_size); +#ifdef HAVE_LONG_LONG + tprintf("st_size=%llu, ", (unsigned long long) statbuf.st_size); +#else + tprintf("st_size=%lu, ", (unsigned long) statbuf.st_size); +#endif break; } if (!abbrev(tcp)) {