[RFC] Prepend timestamp in msgbuf

Ed Schouten ed at 80386.nl
Mon Oct 17 20:33:31 UTC 2011


* Garrett Cooper <yanegomi at 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?

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20111017/38536b9d/attachment.pgp


More information about the freebsd-current mailing list