Fix the code that prints the "Initializing PC-card drivers" message

so that the list of drivers is correct.  This is a slightly
simplified version of the patch from the PR.

PR:		misc/10544
Submitted by:	Christophe Colle <colle@krtkg1.rug.ac.be>
This commit is contained in:
John Polstra 1999-04-27 18:34:13 +00:00
parent 512a10fde7
commit b1f2f2d538
1 changed files with 3 additions and 4 deletions

View File

@ -28,7 +28,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: pccard.c,v 1.73 1999/03/10 15:00:54 roger Exp $
* $Id: pccard.c,v 1.74 1999/04/27 11:18:08 phk Exp $
*/
#include "opt_devfs.h"
@ -162,12 +162,11 @@ static void
pccard_configure(dummy)
void *dummy;
{
struct pccard_device **driver, *drv;
struct pccard_device *drv;
/* This isn't strictly correct, but works because of initialize order */
driver = &drivers;
printf("Initializing PC-card drivers:");
while ((drv = *driver++))
for (drv = drivers; drv != NULL; drv = drv->next)
printf(" %s", drv->name);
printf("\n");
}