[PATCH 1/2] Cast clock_t type to unsigned long

H.J. Lu hjl.tools at gmail.com
Mon Apr 16 15:31:46 UTC 2012


On Mon, Apr 16, 2012 at 8:14 AM, Dmitry V. Levin <ldv at altlinux.org> wrote:
> Hi,
>
> On Mon, Apr 16, 2012 at 07:39:58AM -0700, H.J. Lu wrote:
>> On Sun, Apr 15, 2012 at 11:17:13AM -0700, H.J. Lu wrote:
>> >
>> > Linux kernel v3.4 adds x32 support whose clock_t is long long.  This
>> > patch casts clock_t type to unsigned long for "%lu".
>> >
>> > H.J.
>> > ---
>>
>> Here is a patch to case clock_t type to unsigned long long.
>
> What about other cases where clock_t type is printed?
>
>

Here is a patch to use unsigned long long for clock_t in resource.c
and signal.c

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-clock_t.patch
Type: application/octet-stream
Size: 1234 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120416/298bb00e/attachment.obj>


More information about the Strace-devel mailing list