]> granicus.if.org Git - strace/commitdiff
fcntl.c: print 64-bit fields of struct_kernel_flock64 using PRId64 format
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Dec 2016 16:46:51 +0000 (16:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Dec 2016 19:58:16 +0000 (19:58 +0000)
* fcntl.c (print_struct_flock64): Print l_start and l_len fields
of struct_kernel_flock64 using PRId64 format.

fcntl.c

diff --git a/fcntl.c b/fcntl.c
index bfe8b1458d20f3514f22c8a1ec395ebd001141b2..0a8743b97c1eeecca272dcd6a0bba7af9f1ec626 100644 (file)
--- 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("}");