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:
parent
595d629c09
commit
9483ab16d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user