From: Eugene Syromyatnikov Date: Wed, 31 Aug 2016 23:42:48 +0000 (+0300) Subject: readahead: fix print format for the "count" argument X-Git-Tag: v4.14~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=680d0e960cc21602a90e906f26fe51c4eab03047;p=strace readahead: fix print format for the "count" argument According to documentation and kernel's syscalls.h, its type is size_t, so "%lu" format should be used instead of "%ld". * readahead.c (SYS_FUNC(readahead)): Fix conversion specifier for the "count" argument. --- diff --git a/readahead.c b/readahead.c index 3f8e4ceb..f2b9c802 100644 --- a/readahead.c +++ b/readahead.c @@ -6,7 +6,7 @@ SYS_FUNC(readahead) printfd(tcp, tcp->u_arg[0]); argn = printllval(tcp, ", %lld", 1); - tprintf(", %ld", tcp->u_arg[argn]); + tprintf(", %lu", tcp->u_arg[argn]); return RVAL_DECODED; }