From owner-svn-src-all@FreeBSD.ORG Wed Jan 20 21:12:30 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 672801065695; Wed, 20 Jan 2010 21:12:30 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 577868FC08; Wed, 20 Jan 2010 21:12:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o0KLCUHD019225; Wed, 20 Jan 2010 21:12:30 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o0KLCUQp019223; Wed, 20 Jan 2010 21:12:30 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201001202112.o0KLCUQp019223@svn.freebsd.org> From: Ed Schouten Date: Wed, 20 Jan 2010 21:12:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r202718 - head/usr.bin/getent X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2010 21:12:30 -0000 Author: ed Date: Wed Jan 20 21:12:30 2010 New Revision: 202718 URL: http://svn.freebsd.org/changeset/base/202718 Log: Also print UNIX timestamps in getent utmpx output. Modified: head/usr.bin/getent/getent.c Modified: head/usr.bin/getent/getent.c ============================================================================== --- head/usr.bin/getent/getent.c Wed Jan 20 20:33:10 2010 (r202717) +++ head/usr.bin/getent/getent.c Wed Jan 20 21:12:30 2010 (r202718) @@ -55,8 +55,9 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include +#include +#include #include #include #include @@ -583,7 +584,9 @@ utmpxprint(const struct utmpx *ut) if (ut->ut_type == EMPTY) return; - printf("[%.24s] ", ctime(&ut->ut_tv.tv_sec)); + printf("[%jd.%06u -- %.24s] ", + (intmax_t)ut->ut_tv.tv_sec, (unsigned int)ut->ut_tv.tv_usec, + ctime(&ut->ut_tv.tv_sec)); switch (ut->ut_type) { case BOOT_TIME: