Fix `-o rtprio' so it prints the correct value.

PR:		bin/59417
Submitted by:	Jan Willem Knopper
This fix by:	bde (in the audit-trail of the PR)
This commit is contained in:
Garance A Drosehn 2004-03-28 02:13:31 +00:00
parent 13ea8563af
commit 3998d22271

View File

@ -653,9 +653,9 @@ priorityr(KINFO *k, VARENT *ve)
struct priority *lpri;
char str[8];
unsigned class, level;
v = ve->var;
lpri = (struct priority *) ((char *)k + v->off);
lpri = &k->ki_p->ki_pri;
class = lpri->pri_class;
level = lpri->pri_level;
switch (class) {