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

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-03-15 11:06:53 (+0100), Harti Brandt <hartmut.brandt@dlr.de> wrote:
> On Tue, 15 Mar 2005, Philip Paeps wrote:
> > On 2005-03-15 04:28:01 (-0500), FreeBSD Tinderbox <tinderbox@freebsd.org> wrote:
> > > [...]
> > > *** Error code 1
> > 
> > Ugh, looks like I broke this...
> > 
> > Is there a special magical format to use to printf a time_t without having
> > it 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.

That seems to work, thanks!  Just testing this on beast to make sure.

 - Philip

-- 
Philip Paeps                     Calm down ... it is only ones and zeros
philip@freebsd.org


  A bird in the hand is dead.



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