From 32b6f2626ac95862b5e85bc376dda93e6db58f5c Mon Sep 17 00:00:00 2001 From: gad Date: Sun, 27 Jun 2004 23:59:38 +0000 Subject: 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 --- bin/ps/print.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin') diff --git a/bin/ps/print.c b/bin/ps/print.c index 00394fc..134ceb1 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -668,6 +668,9 @@ priorityr(KINFO *k, VARENT *ve) class = lpri->pri_class; level = lpri->pri_level; switch (class) { + case PRI_ITHD: + snprintf(str, sizeof(str), "intr:%u", level); + break; case PRI_REALTIME: snprintf(str, sizeof(str), "real:%u", level); break; -- cgit v1.1