Re: [head tinderbox] failure on amd64/amd64

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Sat, 20 Jan 2007 20:32:42 +0100
Quoting FreeBSD Tinderbox <tinderbox_at_freebsd.org> (Sat, 20 Jan 2007 13:22:10 -0500 (EST)):


> /src/sys/compat/linprocfs/linprocfs.c: In function `linprocfs_doprocstat':
> /src/sys/compat/linprocfs/linprocfs.c:478: warning: int format, different type arg (arg 3)
> *** Error code 1

Does someone has a table of common 32/64 bit printf issues and the
corresponding DTRT handling of the issues? To fix this I used something
which I did found somewhere in the kernel, but I'm not sure if it is
the best way to fix it. I could have casted it to int instead of
keeping the precision sizeof() is offering (casting to intmax_t and
using a different printf format type). At this place this would have
been enough.

Bye,
Alexander.

-- 
The last person who quit or was fired will be held
responsible for everything that goes wrong -- until
the next person quits or is fired.
http://www.Leidinger.net  Alexander _at_ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild _at_ FreeBSD.org  : PGP ID = 72077137
Received on Sat Jan 20 2007 - 18:32:55 UTC

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