From owner-cvs-all Mon Mar 18 19:17: 2 2002 Delivered-To: cvs-all@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id F105C37B404; Mon, 18 Mar 2002 19:16:56 -0800 (PST) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g2J3Gvlv018775; Mon, 18 Mar 2002 19:16:57 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g2J3Fgbo018772; Mon, 18 Mar 2002 19:15:42 -0800 (PST) Date: Mon, 18 Mar 2002 19:15:42 -0800 From: "David O'Brien" To: Dag-Erling Smorgrav Cc: Kirk McKusick , 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> Reply-To: obrien@FreeBSD.org References: <200203151849.g2FInlW38440@freefall.freebsd.org> <20020318134628.A15033@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Tue, Mar 19, 2002 at 02:18:01AM +0100 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Mar 19, 2002 at 02:18:01AM +0100, Dag-Erling Smorgrav wrote: > "David O'Brien" 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