On Thu, Sep 01, 2016 at 02:42:48AM +0300, Eugene Syromyatnikov wrote:
> It is size_t (according to documentation and syscalls.h), so "%lu" should
> be used instead of "%ld".
> 
> * readahead.c (SYS_FUNC(readahead)): fix conversion specifier for the
>   "count" argument.
> ---
>  readahead.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/readahead.c b/readahead.c
> index 3f8e4ce..f2b9c80 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;
>  }

Yep.


-- 
ldv

Attachment: pgpNtAiJ9iT1y.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to