]> granicus.if.org Git - strace/commitdiff
quota: display quota subcommand as a macro
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 21 Sep 2016 03:10:46 +0000 (06:10 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 27 Sep 2016 00:57:14 +0000 (00:57 +0000)
* quota.c (SYS_FUNC(quotactl)): Replace disjunction of two xlat values
(which also lacks shift of the left part) with QCMD macro call.

quota.c

diff --git a/quota.c b/quota.c
index 0a388b2a565893bf64353c44cf0b37fe61e2b989..9f18c0df4984c4962edb84025b459e3ac829efac 100644 (file)
--- a/quota.c
+++ b/quota.c
@@ -520,10 +520,11 @@ SYS_FUNC(quotactl)
        uint32_t id = tcp->u_arg[2];
 
        if (entering(tcp)) {
+               tprints("QCMD(");
                printxval(quotacmds, cmd, "Q_???");
-               tprints("|");
-               printxval(quotatypes, type, "???QUOTA");
                tprints(", ");
+               printxval(quotatypes, type, "???QUOTA");
+               tprints("), ");
                printpath(tcp, tcp->u_arg[1]);
                tprints(", ");
                switch (cmd) {