[current tinderbox] failure on alpha/alpha

Harti Brandt hartmut.brandt at dlr.de
Tue Mar 15 02:06:33 PST 2005


On Tue, 15 Mar 2005, Philip Paeps wrote:

PP>On 2005-03-15 04:28:01 (-0500), FreeBSD Tinderbox <tinderbox at freebsd.org> wrote:
PP>> /tinderbox/CURRENT/alpha/alpha/src/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c: In function `pf_dump':
PP>> /tinderbox/CURRENT/alpha/alpha/src/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c:1147: warning: size_t format, different type arg (arg 3)
PP>> /tinderbox/CURRENT/alpha/alpha/src/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c:1152: warning: size_t format, different type arg (arg 3)
PP>> /tinderbox/CURRENT/alpha/alpha/src/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c:1157: warning: size_t format, different type arg (arg 3)
PP>> *** Error code 1
PP>
PP>Ugh, looks like I broke this...
PP>
PP>Is there a special magical format to use to printf a time_t without having it
PP>break on at least one of the architectures we support?

The best I've found so far to print an integer type of unknown size is 
to cast it to either intmax_t or uintmax_t and print it using %jd or %ju. 
This requires that you at least know the signedness.

harti


More information about the freebsd-tinderbox mailing list