From nobody@FreeBSD.org  Sat Oct 16 05:50:35 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9B68116A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <wnabe@par.odn.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [Patch] buildkernel faild while defined ED_DEBUG (src/sys/dev/ed if_ed.c if_ed_cbus.c)
X-Send-Pr-Version: www-2.3

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 16 06:00:40 GMT 2004
>Closed-Date:    Sat Nov 13 13:08:34 GMT 2004
>Last-Modified:  Sat Nov 13 13:08:34 GMT 2004
>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:
State-Changed-From-To: open->closed 
State-Changed-By: nyan 
State-Changed-When: Sat Nov 13 13:08:07 GMT 2004 
State-Changed-Why:  
committed.  thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72753 
>Unformatted:
