Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2002 20:00:46 -0700 (MST)
From:      "M. Warner Losh" <imp@village.org>
To:        des@ofug.org
Cc:        obrien@FreeBSD.org, 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:  <20020318.200046.61902984.imp@village.org>
In-Reply-To: <xzpu1rdgxti.fsf@flood.ping.uio.no>
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
In message: <xzpu1rdgxti.fsf@flood.ping.uio.no>
            Dag-Erling Smorgrav <des@ofug.org> writes:
: "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);

IMHO, it is better to nail your <privates> to a tree in winter than to
start using PRI*.  I find them an unspeakable evil that are best
forgotten as a mistake as foul as "noalias".  IMHO, naturally :-)

Warner

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?20020318.200046.61902984.imp>