Re: [RFC] Prepend timestamp in msgbuf

From: Ed Schouten <ed_at_80386.nl>
Date: Mon, 17 Oct 2011 22:33:30 +0200
* 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/

Received on Mon Oct 17 2011 - 18:33:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC