Skip site navigation (1)Skip section navigation (2)
Date:      19 Mar 2002 02:18:01 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        obrien@FreeBSD.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:  <xzpu1rdgxti.fsf@flood.ping.uio.no>
In-Reply-To: <20020318134628.A15033@dragon.nuxi.com>
References:  <200203151849.g2FInlW38440@freefall.freebsd.org> <20020318134628.A15033@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"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);

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

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?xzpu1rdgxti.fsf>