From owner-freebsd-current@FreeBSD.ORG Mon Oct 17 20:33:31 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65C76106564A; Mon, 17 Oct 2011 20:33:31 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 233E18FC19; Mon, 17 Oct 2011 20:33:31 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 87EA42A28D10; Mon, 17 Oct 2011 22:33:30 +0200 (CEST) Date: Mon, 17 Oct 2011 22:33:30 +0200 From: Ed Schouten To: Garrett Cooper Message-ID: <20111017203330.GY91943@hoeg.nl> References: <20111014085609.GA3799@freebsd.org> <40448.1318582809@critter.freebsd.dk> <20111014092445.GA11785@freebsd.org> <20111014093406.GA13981@freebsd.org> <8662jrlor0.fsf@gmail.com> <20111017180111.GA91732@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rTqjRkWorNROYKOV" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Nikolay Denev , Poul-Henning Kamp , FreeBSD Current , Arnaud Lacombe , Nali Toja , Alexander Best Subject: Re: [RFC] Prepend timestamp in msgbuf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2011 20:33:31 -0000 --rTqjRkWorNROYKOV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Garrett Cooper , 20111017 21:38: > time_t maps to int32_t on i386 and int64_t on amd64 (at least), so > you should be able to use "%zd" in the format string as the type is > variable width depending on the architecture. Yuck. Why not cast it to intmax_t and print it using %jd? --=20 Ed Schouten WWW: http://80386.nl/ --rTqjRkWorNROYKOV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOnJEaAAoJEG5e2P40kaK71N0P/ii13rQxwTwILydQzWHOBk58 4LokDCrbx8dHqNF0Pl+IIH4Yl+vSxuF1iB5te0xfs+HTJtC93w2lmeMw203BeaUE vBWpNjdwrwdRmiJjMv4qfEfxkjAsWTKmQkq29XHaPlCiTkUGhsJ6appdjdg8bh1c fAu9M3Ns+DhXiTYNGMvOpnb77W+eekdpgx3BXSvWrRrSAodqqFZNGlcSe41FgO1P ngPKm7Msu/qR6qNJYkO+lnr9LJv37HvqwZ2Qqw9OzO48Q/TbUR6g5R/eOVOSShR5 ds8JtSromWX/Duov8bzP1BiV95EAdCR7tF9HO+uiGhRkysQsbjmUI+OOE14eGJwC x0SqIJuIm/AyYgUxxSqJhyeyT6SFfWa/pZ3ZnNbvUIufIio7s4c8MbUSO9VgiXsB geHRkt2EqlywL0u4gbW5OGyvQuYN4OzMM0ZJ4d38BAHxiOuvTH8nSZTpbdi/n4pV BePHGeE0jW1Z+2PA12N2toU1ji17QoIoCrQ5ObWSagY4sq++4GwpIJGanuy94N1c XW0WMLLEOEo1X2Uvfk3UcSLSPRNkTVMOTNKuY+UACF8kqnCFpScvcmp8EZdgxwuj wsWAiO77JexN01gxL2Je9gKmhBOPWCjdmOlnBNXc8jWqnLtd34sX5hwspaQcZ6vh 6ApSOTJbQeUpS0A7d+qT =HDf2 -----END PGP SIGNATURE----- --rTqjRkWorNROYKOV--