Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2011 22:33:30 +0200
From:      Ed Schouten <ed@80386.nl>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        Nikolay Denev <ndenev@gmail.com>, Poul-Henning Kamp <phk@phk.freebsd.dk>, FreeBSD Current <freebsd-current@freebsd.org>, Arnaud Lacombe <lacombar@gmail.com>, Nali Toja <nalitoja@gmail.com>, Alexander Best <arundel@freebsd.org>
Subject:   Re: [RFC] Prepend timestamp in msgbuf
Message-ID:  <20111017203330.GY91943@hoeg.nl>
In-Reply-To: <CAGH67wRczmTTFkxb2cpmYoywRcRnk%2BgTx32Zy-bzmBu_JxV-_w@mail.gmail.com>
References:  <20111014085609.GA3799@freebsd.org> <40448.1318582809@critter.freebsd.dk> <20111014092445.GA11785@freebsd.org> <20111014093406.GA13981@freebsd.org> <8662jrlor0.fsf@gmail.com> <CACqU3MUznrsT0UD5Dk5sWU%2Bz7cVSPO32GwiubL2qee15=8-cHw@mail.gmail.com> <20111017180111.GA91732@freebsd.org> <CACqU3MUafjo4xRgBtxW8WnSc=b73an7Mc3w0zu=n4ehyv9vdjA@mail.gmail.com> <CAGH67wRczmTTFkxb2cpmYoywRcRnk%2BgTx32Zy-bzmBu_JxV-_w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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

* Garrett Cooper <yanegomi@gmail.com>, 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 <ed@80386.nl>
 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--



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