summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2018-10-07 05:29:22 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2022-09-02 17:55:13 +0200
commit2a21b78253467a66752846a6caa814ee03af4928 (patch)
treee8069e6fc86b163cb7db3d34a425214bbc17c490
parentc23773a5e712d5b5254e611781e43ba3a918e3a3 (diff)
downloadstrace-2a21b78253467a66752846a6caa814ee03af4928.tar.gz
ioprio: print "who" argument according to its type
So far there's only UID that has a specific routine. * ioprio.c (print_ioprio_who): New function. (SYS_FUNC(ioprio_get), SYS_FUNC(ioprio_set)): Use it.
-rw-r--r--src/ioprio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ioprio.c b/src/ioprio.c
index 9b5786813..bacabe606 100644
--- a/src/ioprio.c
+++ b/src/ioprio.c
@@ -52,8 +52,10 @@ print_ioprio(unsigned int ioprio)
static void
ioprio_print_who(struct tcb *tcp, int which, int who)
{
- switch (which)
- {
+ switch (which) {
+ case IOPRIO_WHO_USER:
+ printuid(who);
+ break;
case IOPRIO_WHO_PROCESS:
printpid(tcp, who, PT_TGID);
break;