Fix decoding of setpriority() arguments.

The PRIO_* 'which' value is stored in the first argument to setpriority(2),
not the last.  While here, decode the arguments to getpriority(2).
This commit is contained in:
John Baldwin 2017-06-10 00:35:45 +00:00
parent 595d629c09
commit 9483ab16d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319761

View File

@ -1060,11 +1060,11 @@ ktrsyscall(struct ktr_syscall *ktr, u_int sv_flags)
ip++;
narg--;
break;
case SYS_getpriority:
case SYS_setpriority:
print_number(ip, narg, c);
print_number(ip, narg, c);
putchar(',');
putchar('(');
print_integer_arg(sysdecode_prio_which, *ip);
c = ',';
ip++;
narg--;
break;