Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 1999 06:30:56 -0800 (PST)
From:      j@avias.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   kern/10637: incorrect show initialized PCCARD-drivers on startup
Message-ID:  <19990317143056.B6AE414E98@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         10637
>Category:       kern
>Synopsis:       incorrect show initialized PCCARD-drivers on startup
>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:   Wed Mar 17 06:40:01 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990317143056.B6AE414E98>