From: Eugene Syromyatnikov Date: Thu, 27 Oct 2016 06:53:03 +0000 (+0300) Subject: print_mq_attr: fix typo X-Git-Tag: v4.15~176 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56b7651212d15426f18d0c702c4719e58eb0dd06;p=strace print_mq_attr: fix typo * print_mq_attr.c (printmqattr): Print field name "mq_curmsgs" instead of "mq_curmsg". * tests/mq.expected: Update expected output. --- diff --git a/print_mq_attr.c b/print_mq_attr.c index 18078346..3f7ffbcd 100644 --- a/print_mq_attr.c +++ b/print_mq_attr.c @@ -49,7 +49,7 @@ MPERS_PRINTER_DECL(void, printmqattr, struct tcb *tcp, const long addr) return; tprints("{mq_flags="); tprint_open_modes(attr.mq_flags); - tprintf(", mq_maxmsg=%ld, mq_msgsize=%ld, mq_curmsg=%ld}", + tprintf(", mq_maxmsg=%ld, mq_msgsize=%ld, mq_curmsgs=%ld}", (long) attr.mq_maxmsg, (long) attr.mq_msgsize, (long) attr.mq_curmsgs); #else diff --git a/tests/mq.expected b/tests/mq.expected index 40b8eeef..60b0c702 100644 --- a/tests/mq.expected +++ b/tests/mq.expected @@ -1,4 +1,4 @@ mq_open\("strace-mq.test", O_RDONLY\|O_CREAT, 0700, NULL\) += 0 -mq_getsetattr\(0, NULL, \{mq_flags=O_RDONLY, mq_maxmsg=[1-9][0-9]*, mq_msgsize=[1-9][0-9]*, mq_curmsg=0\}\) += 0 -mq_getsetattr\(0, \{mq_flags=O_RDONLY, mq_maxmsg=[1-9][0-9]*, mq_msgsize=[1-9][0-9]*, mq_curmsg=0\}, NULL\) += 0 +mq_getsetattr\(0, NULL, \{mq_flags=O_RDONLY, mq_maxmsg=[1-9][0-9]*, mq_msgsize=[1-9][0-9]*, mq_curmsgs=0\}\) += 0 +mq_getsetattr\(0, \{mq_flags=O_RDONLY, mq_maxmsg=[1-9][0-9]*, mq_msgsize=[1-9][0-9]*, mq_curmsgs=0\}, NULL\) += 0 mq_unlink\("strace-mq.test"\) += 0