Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2005 11:06:53 +0100 (CET)
From:      Harti Brandt <hartmut.brandt@dlr.de>
To:        Philip Paeps <philip@freebsd.org>
Cc:        FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject:   Re: [current tinderbox] failure on alpha/alpha
Message-ID:  <20050315110501.B98189@beagle.kn.op.dlr.de>
In-Reply-To: <20050315100007.GF696@loge.nixsys.be>
References:  <20050315092801.840557306E@freebsd-current.sentex.ca> <20050315100007.GF696@loge.nixsys.be>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Mar 2005, Philip Paeps wrote:

PP>On 2005-03-15 04:28:01 (-0500), FreeBSD Tinderbox <tinderbox@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



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