Fixed the printf's for ethernet address so that ALL ethernet drivers are
authorRod Grimes <rgrimes@FreeBSD.org>
Tue, 24 Aug 1993 00:15:31 +0000 (00:15 +0000)
committerRod Grimes <rgrimes@FreeBSD.org>
Tue, 24 Aug 1993 00:15:31 +0000 (00:15 +0000)
consistent in the format of this.

sys/i386/isa/if_ec.c
sys/i386/isa/if_ne.c
sys/i386/isa/if_we.c

index aaec920..24e02ba 100644 (file)
@@ -250,7 +250,7 @@ struct isa_device *is;
 /*
  * Weeee.. We get to tell people we exist...
  */
 /*
  * Weeee.. We get to tell people we exist...
  */
-       printf(" address %s\n", ether_sprintf(sc->ec_addr));
+       printf("ec%d: address %s\n", is->id_unit, ether_sprintf(sc->ec_addr));
 }
 
 ec_init(unit)
 }
 
 ec_init(unit)
index e1a6c78..866ce4f 100644 (file)
@@ -333,7 +333,7 @@ neattach(dvp)
        ifp->if_unit = unit;
        ifp->if_name = nedriver.name ;
        ifp->if_mtu = ETHERMTU;
        ifp->if_unit = unit;
        ifp->if_name = nedriver.name ;
        ifp->if_mtu = ETHERMTU;
-       printf (" ethernet address %s", ether_sprintf(ns->ns_addr)) ;
+       printf ("ne%d: address %s", unit, ether_sprintf(ns->ns_addr)) ;
        ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS;
        ifp->if_init = neinit;
        ifp->if_output = ether_output;
        ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS;
        ifp->if_init = neinit;
        ifp->if_output = ether_output;
index 4a31e77..0930383 100644 (file)
  * we_attach enhanced with link level address by Rodney W. Grimes, 1/30/93
  *
  * $Log: if_we.c,v $
  * we_attach enhanced with link level address by Rodney W. Grimes, 1/30/93
  *
  * $Log: if_we.c,v $
+ * Revision 1.3  1993/08/22  22:54:56  ats
+ * Added a new-line in the output of the ethernet-address that it gets
+ * on it's line alone ( not mangled with the FPU detection ).
+ * Commented out a debug printf in if_ec.c ( printf("ecinit") ).
+ *
  * Revision 1.2  1993/07/29  12:07:10  davidg
  * Added include of systm.h to get min/max/bcmp etc...
  *
  * Revision 1.2  1993/07/29  12:07:10  davidg
  * Added include of systm.h to get min/max/bcmp etc...
  *
@@ -224,8 +229,10 @@ weprobe(is)
            sum += inb(is->id_iobase + WD_ROM_OFFSET + i);
        if (sum != WD_CHECKSUM) {               /* 09 Sep 92*/
 #ifdef WECOMPAT
            sum += inb(is->id_iobase + WD_ROM_OFFSET + i);
        if (sum != WD_CHECKSUM) {               /* 09 Sep 92*/
 #ifdef WECOMPAT
-           printf( "we: probe: checksum failed... installing anyway\n");
-           printf( "we: Danpex EW-2016 or other 8013 clone card?\n");
+           printf( "we%d: probe: checksum failed... installing anyway\n",
+               is->id_unit);
+           printf( "we%d: Danpex EW-2016 or other 8013 clone card?\n",
+               is->id_unit);
 #else  /* !WECOMPAT*/
             return (0);
 #endif /* !WECOMPAT*/
 #else  /* !WECOMPAT*/
             return (0);
 #endif /* !WECOMPAT*/
@@ -348,8 +355,9 @@ weattach(is)
        /*
         * Banner...
         */
        /*
         * Banner...
         */
-       printf(" %saddr %s\n",
-               (sc->we_type & WD_ETHERNET) ? "enet" : "slan",
+       printf("we%d: %s address %s\n",
+               is->id_unit,
+               (sc->we_type & WD_ETHERNET) ? "ethernet" : "starlan",
                ether_sprintf(sc->we_addr));
 }
  
                ether_sprintf(sc->we_addr));
 }