Subject: RFC: pvm patch for console output alignment
To: None <tech-pkg@netbsd.org>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: tech-pkg
Date: 11/01/2002 13:22:14
--jL2BoiuKMElzg3CS
Content-Type: multipart/mixed; boundary="DIOMP1UsTsWJauNi"
Content-Disposition: inline


--DIOMP1UsTsWJauNi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

for a long time, pvm console "conf" output wasn't aligned because many
NETBSD$FOO architecture names were wider than assumed in the code.

With the appended patch, the output is nice again.=20

May I commit? (I'll certainly feed this back to PVM...)

Regards,
	-is

--DIOMP1UsTsWJauNi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ay

--- console/cmds.c.old	Wed Oct 30 12:47:26 2002
+++ console/cmds.c	Wed Oct 30 12:49:37 2002
@@ -1365,9 +1365,9 @@
 	if (!pvm_config(&nhosts, &narchs, &hostlist)) {
 		printf("%d host%s, %d data format%s\n",
 			nhosts, (nhosts > 1 ? "s" : ""), narchs, (narchs > 1 ? "s" : ""));
-		fputs("                    HOST     DTID     ARCH   SPEED       DSIG\n", stdout);
+		fputs("                    HOST     DTID         ARCH   SPEED       DSIG\n", stdout);
 		for (i = 0; i < nhosts; i++)
-			printf("%24s %8x %8s%8d 0x%08x\n",
+			printf("%24s %8x %12s%8d 0x%08x\n",
 					hostlist[i].hi_name,
 					hostlist[i].hi_tid,
 					hostlist[i].hi_arch,

--DIOMP1UsTsWJauNi--

--jL2BoiuKMElzg3CS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPcJx8zCn4om+4LhpAQFmVgf/S1y+NVaUFOz+bnUMWq5PwGsCW3gmjPgR
ptF3UEi1QK7EHyr7ESMypAqgGMXFp5bKN/Nzr07YITtS7WzOaXI9BlE/Q3fPYxyc
8ljnF23aCw1+X2HAqWqwnpPjFiJeAqiOtkSe4ZgdDaLf/vO8a1GHIU6Khh9zNfzX
s1RRcs98/4cLo7fmtkXYJMti2FS5941ZBGNdNdp3XQRGi4IGSFyGTvIImX2jLaL8
3MCAxt4zCAHMbKLpBqjm7s6k2z7wZRscjS9XYeeledzHLZGWc0gjaVAcdjNUI8SN
lxZQn0l66DH4YO1kZ8OVko0/ITmxqWP8SRuCGHwlFz66mf6LC3hZLA==
=UQpw
-----END PGP SIGNATURE-----

--jL2BoiuKMElzg3CS--