From nobody@FreeBSD.ORG Wed Mar 17 06:31:12 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id B6AE414E98; Wed, 17 Mar 1999 06:30:56 -0800 (PST)
Message-Id: <19990317143056.B6AE414E98@hub.freebsd.org>
Date: Wed, 17 Mar 1999 06:30:56 -0800 (PST)
From: j@avias.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: incorrect show initialized PCCARD-drivers on startup
X-Send-Pr-Version: www-1.0

>Number:         10637
>Category:       kern
>Synopsis:       incorrect show initialized PCCARD-drivers on startup
>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:   Wed Mar 17 06:40:01 PST 1999
>Closed-Date:    Tue Apr 27 22:57:32 PDT 1999
>Last-Modified:  Tue Apr 27 22:58:51 PDT 1999
>Originator:     Juriy goloveshkin
>Release:        stable and current
>Organization:
The Research Institute of Aviation Industry Economy
>Environment:
FreeBSD libretto.avias.local 3.1-STABLE FreeBSD 3.1-STABLE #6: Wed Mar 17 16:59:51 MSK 1999     root@main.avias.com:/mntt/src/sys/compile/LIBRETTO  i386
>Description:
incorrect show more that one initialized PCCARD-drivers on startup
It shows only one driver.
>How-To-Repeat:
just see...
>Fix:
something like this:
===============
*** pccard.c.orig       Tue Mar  9 20:20:18 1999
--- pccard.c    Wed Mar 17 17:02:18 1999
***************
*** 160,172 ****
  pccard_configure(dummy)
        void *dummy;
  {
!       struct pccard_device **driver, *drv;

        /* This isn't strictly correct, but works because of initialize order */
!       driver = &drivers;
        printf("Initializing PC-card drivers:");
!       while ((drv = *driver++))
                printf(" %s", drv->name);
        printf("\n");
  }

--- 160,174 ----
  pccard_configure(dummy)
        void *dummy;
  {
!       struct pccard_device *drv;

        /* This isn't strictly correct, but works because of initialize order */
!       drv = drivers;
        printf("Initializing PC-card drivers:");
!       while (drv){
                printf(" %s", drv->name);
+               drv=drv->next;
+       }
        printf("\n");
  }
===============


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jdp 
State-Changed-When: Tue Apr 27 22:57:32 PDT 1999 
State-Changed-Why:  
Fixed in src/sys/pccard.c revision 1.75.  (Same problem as 
PR misc/10544). 
>Unformatted:
