]> granicus.if.org Git - strace/commitdiff
mq: Print msg_prio parameter as unsigned int in mq_timedsend
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 27 Oct 2016 07:07:29 +0000 (10:07 +0300)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 28 Oct 2016 23:54:02 +0000 (02:54 +0300)
* mq.c (SYS_FUNC(mq_timedsend)): Change conversion specifier from "%ld"
to "%u", cast argument value to unsigned int.

mq.c

diff --git a/mq.c b/mq.c
index 2146ce7c4c33b378faf7d3159bc87665cf155192..aa05bb167e3db0c318515dd46b04c42209c659e1 100644 (file)
--- a/mq.c
+++ b/mq.c
@@ -49,7 +49,8 @@ SYS_FUNC(mq_timedsend)
 {
        tprintf("%d, ", (int) tcp->u_arg[0]);
        printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);
-       tprintf(", %llu, %ld, ", getarg_ull(tcp, 2), tcp->u_arg[3]);
+       tprintf(", %llu, %u, ", getarg_ull(tcp, 2),
+               (unsigned int) tcp->u_arg[3]);
        print_timespec(tcp, tcp->u_arg[4]);
        return RVAL_DECODED;
 }