tuxillo's projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4d983f7
)
buildworld - Adjust ps for recent commits
author
Matthew Dillon <dillon@apollo.backplane.com>
Tue, 24 Aug 2010 05:19:41 +0000 (22:19 -0700)
committer
Matthew Dillon <dillon@apollo.backplane.com>
Tue, 24 Aug 2010 05:19:41 +0000 (22:19 -0700)
* Fixes buildworld
bin/ps/print.c
patch
|
blob
|
blame
|
history
diff --git
a/bin/ps/print.c
b/bin/ps/print.c
index
149d8d0
..
0a409be
100644
(file)
--- a/
bin/ps/print.c
+++ b/
bin/ps/print.c
@@
-256,7
+256,7
@@
pri(const KINFO *k, const struct varent *vent)
if (KI_LWP(k, pid) != -1)
printf("%*d", vent->width, KI_LWP(k, prio));
else
- printf("%*d", vent->width, -(KI_LWP(k, tdprio) & TDPRI_MASK));
+ printf("%*d", vent->width, -(KI_LWP(k, tdprio)));
}
void
@@
-265,7
+265,7
@@
tdpri(const KINFO *k, const struct varent *vent)
char buf[32];
int val = KI_LWP(k, tdprio);
- snprintf(buf, sizeof(buf), "%02d/%d", val & TDPRI_MASK, val / TDPRI_CRIT);
+ snprintf(buf, sizeof(buf), "%2d", val);
printf("%*s", vent->width, buf);
}