Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2010 12:31:36 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r202080 - user/ed/utmpx/usr.bin/last
Message-ID:  <201001111231.o0BCVaLg060638@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Mon Jan 11 12:31:36 2010
New Revision: 202080
URL: http://svn.freebsd.org/changeset/base/202080

Log:
  Make "shutdown" lines fit properly when using 80 columns.

Modified:
  user/ed/utmpx/usr.bin/last/last.c

Modified: user/ed/utmpx/usr.bin/last/last.c
==============================================================================
--- user/ed/utmpx/usr.bin/last/last.c	Mon Jan 11 11:09:03 2010	(r202079)
+++ user/ed/utmpx/usr.bin/last/last.c	Mon Jan 11 12:31:36 2010	(r202080)
@@ -335,19 +335,19 @@ printentry(struct utmpx *bp, struct idta
 	    (yflag ? "%a %b %e %Y %R" : "%a %b %e %R"), tm);
 	switch (bp->ut_type) {
 	case BOOT_TIME:
-		printf("%-44s", "boot time");
+		printf("%-42s", "boot time");
 		break;
 	case SHUTDOWN_TIME:
-		printf("%-44s", "shutdown time");
+		printf("%-42s", "shutdown time");
 		break;
 	case OLD_TIME:
-		printf("%-44s", "old time");
+		printf("%-42s", "old time");
 		break;
 	case NEW_TIME:
-		printf("%-44s", "new time");
+		printf("%-42s", "new time");
 		break;
 	case USER_PROCESS:
-		printf("%-10s %-8s %-24.24s",
+		printf("%-10s %-8s %-22.22s",
 		    bp->ut_user, bp->ut_line, bp->ut_host);
 		break;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001111231.o0BCVaLg060638>