From: Dmitry V. Levin Date: Mon, 19 Dec 2016 16:46:51 +0000 (+0000) Subject: fcntl.c: print 64-bit fields of struct_kernel_flock64 using PRId64 format X-Git-Tag: v4.16~328 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e42dac436167602399071b112c0b4b3e95b2b1f7;p=strace fcntl.c: print 64-bit fields of struct_kernel_flock64 using PRId64 format * fcntl.c (print_struct_flock64): Print l_start and l_len fields of struct_kernel_flock64 using PRId64 format. --- diff --git a/fcntl.c b/fcntl.c index bfe8b145..0a8743b9 100644 --- a/fcntl.c +++ b/fcntl.c @@ -46,8 +46,8 @@ print_struct_flock64(const struct_kernel_flock64 *fl, const int getlk) printxval(lockfcmds, (unsigned short) fl->l_type, "F_???"); tprints(", l_whence="); printxval(whence_codes, (unsigned short) fl->l_whence, "SEEK_???"); - tprintf(", l_start=%lld, l_len=%lld", - (long long) fl->l_start, (long long) fl->l_len); + tprintf(", l_start=%" PRId64 ", l_len=%" PRId64, + (int64_t) fl->l_start, (int64_t) fl->l_len); if (getlk) tprintf(", l_pid=%lu", (unsigned long) fl->l_pid); tprints("}");