]> granicus.if.org Git - strace/commitdiff
mq: print msg_prio as a pointer, not as an immediate value
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 27 Oct 2016 07:14:49 +0000 (10:14 +0300)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 28 Oct 2016 23:54:02 +0000 (02:54 +0300)
* mq.c (SYS_FUNC(mq_timedreceive)): Use printnum_int for printing
msg_prio argument.

mq.c

diff --git a/mq.c b/mq.c
index c04c8e98e998df9e17046b495aa2135bbed1fe24..1970f930d699e79399733e6a8ac43882878c3b81 100644 (file)
--- a/mq.c
+++ b/mq.c
@@ -64,7 +64,9 @@ SYS_FUNC(mq_timedreceive)
                        printstr(tcp, tcp->u_arg[1], tcp->u_rval);
                else
                        printaddr(tcp->u_arg[1]);
-               tprintf(", %llu, %ld, ", getarg_ull(tcp, 2), tcp->u_arg[3]);
+               tprintf(", %llu, ", getarg_ull(tcp, 2));
+               printnum_int(tcp, tcp->u_arg[3], "%u");
+               tprintf(", ");
                /*
                 * Since the timeout parameter is read by the kernel
                 * on entering syscall, it has to be decoded the same way