svn commit: r202080 - user/ed/utmpx/usr.bin/last
Ed Schouten
ed at FreeBSD.org
Mon Jan 11 12:31:36 UTC 2010
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;
}
More information about the svn-src-user
mailing list