PERFORCE change 146070 for review

Ed Schouten ed at FreeBSD.org
Sun Jul 27 21:56:39 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=146070

Change 146070 by ed at ed_dull on 2008/07/27 21:56:21

	Fix formatting when running `pstat -tn'. We should really
	consider only displaying the raw dev_t. The major <-> minor
	split-up doesn't make a lot of sense, in my opinion.

Affected files ...

.. //depot/projects/mpsafetty/usr.sbin/pstat/pstat.c#4 edit

Differences ...

==== //depot/projects/mpsafetty/usr.sbin/pstat/pstat.c#4 (text+ko) ====

@@ -326,7 +326,7 @@
 		errx(1, "struct xtty size mismatch");
 	if (usenumflag || xt->xt_dev == 0 ||
 	   (name = devname(xt->xt_dev, S_IFCHR)) == NULL)
-		printf("      %2d,%-2d", major(xt->xt_dev), minor(xt->xt_dev));
+		printf("%5d,%4d ", major(xt->xt_dev), minor(xt->xt_dev));
 	else
 		printf("%10s ", name);
 	printf("%5zu %4zu %4zu %4zu %5zu %4zu %4zu %5u %5d %5d ",


More information about the p4-projects mailing list