From owner-freebsd-current Tue Mar 19 12:40:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id D5C7237B47F for ; Tue, 19 Mar 2002 12:40:00 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.2/8.12.2) with ESMTP id g2JKdqUD052163; Tue, 19 Mar 2002 21:39:52 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Alfred Perlstein Cc: current@freebsd.org Subject: Re: fla LINT breakage. In-Reply-To: Your message of "Tue, 19 Mar 2002 12:19:01 PST." <20020319201901.GJ455@elvis.mu.org> Date: Tue, 19 Mar 2002 21:39:52 +0100 Message-ID: <52162.1016570392@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You're welcome to commit it :-) Poul-Henning In message <20020319201901.GJ455@elvis.mu.org>, Alfred Perlstein writes: >Fixes format warnings. Since there was so much... bitching about my >last commit to something contrib/* I'm posting the fix here. > >Index: fla.c >=================================================================== >RCS file: /home/ncvs/src/sys/contrib/dev/fla/fla.c,v >retrieving revision 1.29 >diff -u -r1.29 fla.c >--- fla.c 12 Sep 2001 08:36:59 -0000 1.29 >+++ fla.c 19 Mar 2002 20:22:51 -0000 >@@ -181,8 +181,9 @@ > enum doc2k_work what; > > if (fla_debug > 1) >- printf("flastrategy(%p) %s %x, %d, %ld, %p)\n", >- bp, devtoname(bp->bio_dev), bp->bio_flags, bp->bio_blkno, >+ printf("flastrategy(%p) %s %x, %lld, %ld, %p)\n", >+ bp, devtoname(bp->bio_dev), bp->bio_flags, >+ (long long)bp->bio_blkno, > bp->bio_bcount / DEV_BSIZE, bp->bio_data); > > sc = bp->bio_dev->si_drv1; >@@ -225,8 +226,9 @@ > ENTER(); > > if (fla_debug > 1 || error) { >- printf("fla%d: %d = rwe(%p, %d, %d, %d, %ld, %p)\n", >- unit, error, bp, unit, what, bp->bio_pblkno, >+ printf("fla%d: %d = rwe(%p, %d, %d, %lld, %ld, %p)\n", >+ unit, error, bp, unit, what, >+ (long long)bp->bio_pblkno, > bp->bio_bcount / DEV_BSIZE, bp->bio_data); > } > if (error) { > > > -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message