diff options
author | gad <gad@FreeBSD.org> | 2004-06-27 23:59:38 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-06-27 23:59:38 +0000 |
commit | 32b6f2626ac95862b5e85bc376dda93e6db58f5c (patch) | |
tree | a8cc180b03ba0c9a92f4cb9a20c787c0ecd86e6e /bin | |
parent | 4e782d8fc0c78221d9583a6bcbe7e24ce29f462f (diff) | |
download | FreeBSD-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')
-rw-r--r-- | bin/ps/print.c | 3 |
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; |