Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2007 20:32:42 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        FreeBSD Tinderbox <tinderbox@freebsd.org>
Cc:        amd64@freebsd.org, current@freebsd.org
Subject:   Re: [head tinderbox] failure on amd64/amd64
Message-ID:  <20070120203242.61bf253d@Magellan.Leidinger.net>
In-Reply-To: <20070120182210.56EBD73034@freebsd-current.sentex.ca>
References:  <20070120182210.56EBD73034@freebsd-current.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting FreeBSD Tinderbox <tinderbox@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 @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



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