[PATCH 01/12] quota: Display quota command as a macro
Eugene Syromyatnikov
evgsyr at gmail.com
Wed Sep 21 03:10:46 UTC 2016
* quota.c (SYS_FUNC(quotactl)): Replace disjunction of two xlat values
(which also lacks shift of left part) with a macro call.
---
quota.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/quota.c b/quota.c
index 0a388b2..9f18c0d 100644
--- 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) {
--
1.7.10.4
More information about the Strace-devel
mailing list