Change the "rtprio" format so it prints an informative string for

the PRI_ITHD case (instead of just printing the digit '1').

Submitted by:	Cyrille Lefevre
This commit is contained in:
Garance A Drosehn 2004-06-27 23:59:38 +00:00
parent b3f695b45c
commit 70548f642a

View File

@ -668,6 +668,9 @@ priorityr(KINFO *k, VARENT *ve)
class = lpri->pri_class; class = lpri->pri_class;
level = lpri->pri_level; level = lpri->pri_level;
switch (class) { switch (class) {
case PRI_ITHD:
snprintf(str, sizeof(str), "intr:%u", level);
break;
case PRI_REALTIME: case PRI_REALTIME:
snprintf(str, sizeof(str), "real:%u", level); snprintf(str, sizeof(str), "real:%u", level);
break; break;