Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2002 19:15:42 -0800
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Kirk McKusick <mckusick@mckusick.com>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/coda coda_vnops.c src/sys/dev/ccd ccd.c src/sys/dev/md md.c src/sys/dev/vinum vinumdaemon.c vinuminterrupt.c vinumrequest.c vinumrevive.c src/sys/fs/hpfs hpfs_vnops.c src/sys/fs/msdosfs msdosfs_fat.c msdosfs_vnops.c ...
Message-ID:  <20020318191542.A18453@dragon.nuxi.com>
In-Reply-To: <xzpu1rdgxti.fsf@flood.ping.uio.no>; from des@ofug.org on Tue, Mar 19, 2002 at 02:18:01AM %2B0100
References:  <200203151849.g2FInlW38440@freefall.freebsd.org> <20020318134628.A15033@dragon.nuxi.com> <xzpu1rdgxti.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 19, 2002 at 02:18:01AM +0100, Dag-Erling Smorgrav wrote:
> "David O'Brien" <obrien@FreeBSD.org> writes:
> > Objects of type daddr64_t need to be cast to `(long long)' before
> > printing them out with %lld.  Failure to do so adds build warnings on
> > 64-bit hosts.
> 
> Umm, better use int64_t and PRId64, like this:
> 
>     printf("block no: %" PRId64 "\n", (int64_t)b->b_blkno);

Are you sure one can do this in the kernel?  PRId64 was not found for me
when I tried.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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