[PATCH 02/12] quota: Use printuid for id parameter printing
Eugene Syromyatnikov
evgsyr at gmail.com
Wed Sep 21 03:10:57 UTC 2016
* quota.c (SYS_FUNC(quotactl)): since id call argument is used for
user/group/project ID which all have special semantics for -1, it
looks reasonable to print it the same way as UIDs are printed.
---
quota.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/quota.c b/quota.c
index 9f18c0d..efef4ed 100644
--- a/quota.c
+++ b/quota.c
@@ -535,7 +535,8 @@ SYS_FUNC(quotactl)
printpath(tcp, tcp->u_arg[3]);
return RVAL_DECODED;
}
- tprintf("%u, ", id);
+ printuid("", id);
+ tprints(", ");
}
return decode_cmd_data(tcp, cmd, tcp->u_arg[3]);
}
--
1.7.10.4
More information about the Strace-devel
mailing list