From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 16 06:00:41 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B7F116A4CE for ; Sat, 16 Oct 2004 06:00:41 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F370943D45 for ; Sat, 16 Oct 2004 06:00:40 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9G60e2g044725 for ; Sat, 16 Oct 2004 06:00:40 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9G60eqv044723; Sat, 16 Oct 2004 06:00:40 GMT (envelope-from gnats) Resent-Date: Sat, 16 Oct 2004 06:00:40 GMT Resent-Message-Id: <200410160600.i9G60eqv044723@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hirokazu WATANABE Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B68116A4CE for ; Sat, 16 Oct 2004 05:50:35 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66D3243D3F for ; Sat, 16 Oct 2004 05:50:35 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9G5oZ43061730 for ; Sat, 16 Oct 2004 05:50:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i9G5oZVB061729; Sat, 16 Oct 2004 05:50:35 GMT (envelope-from nobody) Message-Id: <200410160550.i9G5oZVB061729@www.freebsd.org> Date: Sat, 16 Oct 2004 05:50:35 GMT From: Hirokazu WATANABE To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/72753: [Patch] buildkernel faild while defined ED_DEBUG (src/sys/dev/ed if_ed.c if_ed_cbus.c) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Oct 2004 06:00:41 -0000 >Number: 72753 >Category: kern >Synopsis: [Patch] buildkernel faild while defined ED_DEBUG (src/sys/dev/ed if_ed.c if_ed_cbus.c) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 16 06:00:40 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Hirokazu WATANABE >Release: FreeBSD/pc98 5.3-BETA7 >Organization: >Environment: FreeBSD hera.private 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Sat Oct 16 00:59:33 JST 200 4 watanabe@proteus.private:/pub4/5current/obj5/pub4/5current/src/sys/GENERIC i386 >Description: printf format string is not match its arg type. >How-To-Repeat: defines ED_DEBUG, and make buildkernel. >Fix: Index: src/sys/dev/ed/if_ed.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ed/if_ed.c,v retrieving revision 1.233.2.1 diff -u -r1.233.2.1 if_ed.c --- src/sys/dev/ed/if_ed.c 17 Sep 2004 10:14:49 -0000 1.233.2.1 +++ src/sys/dev/ed/if_ed.c 15 Oct 2004 15:52:24 -0000 @@ -371,7 +371,7 @@ return (error); #if ED_DEBUG - printf("type = %x type_str=%s isa16bit=%d memsize=%d id_msize=%d\n", + printf("type = %x type_str=%s isa16bit=%d memsize=%d id_msize=%lu\n", sc->type, sc->type_str, isa16bit, memsize, conf_msize); for (i = 0; i < 8; i++) printf("%x -> %x\n", i, ed_asic_inb(sc, i)); Index: src/sys/dev/ed/if_ed_cbus.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ed/if_ed_cbus.c,v retrieving revision 1.12 diff -u -r1.12 if_ed_cbus.c --- src/sys/dev/ed/if_ed_cbus.c 31 Oct 2003 18:31:58 -0000 1.12 +++ src/sys/dev/ed/if_ed_cbus.c 16 Oct 2004 02:16:24 -0000 @@ -1682,7 +1682,7 @@ ed_nic_outb(sc, ED_P0_PSTART, page_offset / ED_PAGE_SIZE); ed_nic_outb(sc, ED_P0_PSTOP, (page_offset + memsize) / ED_PAGE_SIZE); #ifdef ED_DEBUG - printf("ed?: ed_pio_testmem: page start=%x, end=%x", + printf("ed?: ed_pio_testmem: page start=%x, end=%lu", page_offset, page_offset + memsize); #endif >Release-Note: >Audit-Trail: >Unformatted: