strace/readahead.c
Eugene Syromyatnikov 680d0e960c 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.
2016-09-01 15:18:11 +00:00

13 lines
183 B
C

#include "defs.h"
SYS_FUNC(readahead)
{
int argn;
printfd(tcp, tcp->u_arg[0]);
argn = printllval(tcp, ", %lld", 1);
tprintf(", %lu", tcp->u_arg[argn]);
return RVAL_DECODED;
}