summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 7d1d190..beb6f52 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -392,17 +392,13 @@ tdev(KINFO *k, VARENT *ve)
{
VAR *v;
dev_t dev;
- char buff[16];
v = ve->var;
dev = k->ki_p->ki_tdev;
if (dev == NODEV)
(void)printf("%*s", v->width, "??");
- else {
- (void)snprintf(buff, sizeof(buff),
- "%d/%d", major(dev), minor(dev));
- (void)printf("%*s", v->width, buff);
- }
+ else
+ (void)printf("%#*jx", v->width, (uintmax_t)dev);
}
void
OpenPOWER on IntegriCloud