From 5945f04b69f145354882c1ff33c4dec97b385380 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 25 Oct 2003 21:30:47 +0000 Subject: [PATCH] Fix completely bogus printf that used uninitialized variables. --- sys/dev/pci/amr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/amr.c b/sys/dev/pci/amr.c index 587ab2e26d79..4b6eaaabc8dc 100644 --- a/sys/dev/pci/amr.c +++ b/sys/dev/pci/amr.c @@ -1,4 +1,4 @@ -/* $NetBSD: amr.c,v 1.16 2003/10/25 18:31:11 christos Exp $ */ +/* $NetBSD: amr.c,v 1.17 2003/10/25 21:30:47 christos Exp $ */ /*- * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc. @@ -71,7 +71,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: amr.c,v 1.16 2003/10/25 18:31:11 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: amr.c,v 1.17 2003/10/25 21:30:47 christos Exp $"); #include #include @@ -602,8 +602,8 @@ amr_init(struct amr_softc *amr, const char *intrstr, if (aex->ae_numldrives > AMR_MAX_UNITS) { aprint_error( "%s: adjust AMR_MAX_UNITS to %d (currently %d)" - "\n", amr->amr_dv.dv_xname, - ae->ae_ldrv.al_numdrives, AMR_MAX_UNITS); + "\n", amr->amr_dv.dv_xname, AMR_MAX_UNITS, + amr->amr_numdrives); amr->amr_numdrives = AMR_MAX_UNITS; } else amr->amr_numdrives = aex->ae_numldrives;