From owner-freebsd-current Fri Sep 13 2:24:40 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2124A37B400 for ; Fri, 13 Sep 2002 02:24:39 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBF4943E6A for ; Fri, 13 Sep 2002 02:24:38 -0700 (PDT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id C9A5BAE1D7; Fri, 13 Sep 2002 02:24:38 -0700 (PDT) Date: Fri, 13 Sep 2002 02:24:38 -0700 From: Maxime Henrion To: Bruce Evans Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: Alpha fatal warning in kernel compile Message-ID: <20020913092438.GS86074@elvis.mu.org> References: <20020912202750.GA21944@xor.obsecurity.org> <20020913183115.O9223-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020913183115.O9223-100000@gamplex.bde.org> User-Agent: Mutt/1.3.27i 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 Bruce Evans wrote: > > cc1: warnings being treated as errors > > /local0/src2/sys/dev/ccd/ccd.c: In function `ccdiodone': > > /local0/src2/sys/dev/ccd/ccd.c:1181: warning: long long int format, daddr_t arg (arg 6) > > *** Error code 1 > > This is a routine printf format error. %lld format should only be used > for printing long longs (which should never be used). Here the type is > daddr_t, which happens to be int64_t, which happens to be plain long on > alphas. > > Don't forget to fix the other error in the printf. 2 bio_blkno's are > printed using 2 different wrong formats, but only 1 is warned about > because the value of 1 of them is broken (cast) to be bug for bug > compatible with its format. I took the liberty to fix those. Cheers, Maxime To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message