quota: display quota subcommand as a macro

* quota.c (SYS_FUNC(quotactl)): Replace disjunction of two xlat values
(which also lacks shift of the left part) with QCMD macro call.
This commit is contained in:
Eugene Syromyatnikov 2016-09-21 06:10:46 +03:00 committed by Dmitry V. Levin
parent 632cc8a697
commit 0cda3e0823

View File

@ -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) {