Index: lib/libstand/netif.c =================================================================== --- lib/libstand/netif.c (revision 294089) +++ lib/libstand/netif.c (working copy) @@ -49,7 +49,7 @@ struct iodesc sockets[SOPEN_MAX]; #ifdef NETIF_DEBUG -int netif_debug = 0; +int netif_debug = 1; #endif /* @@ -114,7 +114,7 @@ #ifdef NETIF_DEBUG if (netif_debug) - printf("\t%s%d:", drv->netif_bname, + printf(" * %s%d:\n", drv->netif_bname, cur_if.nif_unit); #endif @@ -124,7 +124,7 @@ if (drv->netif_ifs[u].dif_used & (1 << s)) { #ifdef NETIF_DEBUG if (netif_debug) - printf(" [%d used]", s); + printf(" [%d used]\n", s); #endif continue; } @@ -132,7 +132,7 @@ val = netif_match(&cur_if, machdep_hint); #ifdef NETIF_DEBUG if (netif_debug) - printf(" [%d -> %d]", s, val); + printf(" [%d -> %d]\n", s, val); #endif if (val > best_val) { best_val = val; @@ -139,10 +139,6 @@ best_if = cur_if; } } -#ifdef NETIF_DEBUG - if (netif_debug) - printf("\n"); -#endif } } Index: lib/libstand/netif.h =================================================================== --- lib/libstand/netif.h (revision 294089) +++ lib/libstand/netif.h (working copy) @@ -8,6 +8,8 @@ #define NENTS(x) sizeof(x)/sizeof(x[0]) +#define NETIF_DEBUG 1 + struct netif_driver { const char *netif_bname; int (*netif_match)(struct netif *, void *); Index: sys/boot/common/dev_net.c =================================================================== --- sys/boot/common/dev_net.c (revision 294089) +++ sys/boot/common/dev_net.c (working copy) @@ -68,7 +68,7 @@ #include "bootstrap.h" #ifdef NETIF_DEBUG -int debug = 0; +int debug = 1; #endif static char *netdev_name; Index: sys/boot/efi/libefi/efinet.c =================================================================== --- sys/boot/efi/libefi/efinet.c (revision 294089) +++ sys/boot/efi/libefi/efinet.c (working copy) @@ -101,6 +101,8 @@ { struct devdesc *dev = machdep_hint; + printf(" efinet_match(): d_unit=%d, nif_unit=%d\n", dev->d_unit, nif->nif_unit); + if (dev->d_unit - 1 == nif->nif_unit) return (1); return(0);