summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-06-27 23:59:38 +0000
committergad <gad@FreeBSD.org>2004-06-27 23:59:38 +0000
commit32b6f2626ac95862b5e85bc376dda93e6db58f5c (patch)
treea8cc180b03ba0c9a92f4cb9a20c787c0ecd86e6e /bin/ps
parent4e782d8fc0c78221d9583a6bcbe7e24ce29f462f (diff)
downloadFreeBSD-src-32b6f2626ac95862b5e85bc376dda93e6db58f5c.zip
FreeBSD-src-32b6f2626ac95862b5e85bc376dda93e6db58f5c.tar.gz
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
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/print.c3
1 files changed, 3 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud