From: Eugene Syromyatnikov Date: Thu, 27 Oct 2016 06:56:32 +0000 (+0300) Subject: mq: Print msg_len parameter as kernel_ulong_t X-Git-Tag: v4.15~175 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0302a3186e4ab7902a91122f43bf419cf99b473a;p=strace mq: Print msg_len parameter as kernel_ulong_t * mq.c (SYS_FUNC(mq_timedsend)): Change conversion specifier from "%lu" to "%llu", use getarg_ull for obtaining msg_len parameter. (SYS_FUNC(mq_timedreceive)): Likewise. --- diff --git a/mq.c b/mq.c index cd4334a6..357d87f1 100644 --- a/mq.c +++ b/mq.c @@ -49,7 +49,7 @@ SYS_FUNC(mq_timedsend) { tprintf("%d, ", (int) tcp->u_arg[0]); printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); - tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]); + tprintf(", %llu, %ld, ", getarg_ull(tcp, 2), tcp->u_arg[3]); print_timespec(tcp, tcp->u_arg[4]); return RVAL_DECODED; } @@ -60,7 +60,7 @@ SYS_FUNC(mq_timedreceive) tprintf("%d, ", (int) tcp->u_arg[0]); } else { printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); - tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]); + tprintf(", %llu, %ld, ", getarg_ull(tcp, 2), tcp->u_arg[3]); /* * Since the timeout parameter is read by the kernel * on entering syscall, it has to be decoded the same way