FreeBSD Bugzilla – Attachment 165913 Details for
Bug 202097
[EFI] boot/loader.efi: efinet regression
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Debug patch used to produce attached screenshot
patch-efinet+debug.txt (text/plain), 2.15 KB, created by
Ganael LAPLANCHE
on 2016-01-21 11:33:53 UTC
(
hide
)
Description:
Debug patch used to produce attached screenshot
Filename:
MIME Type:
Creator:
Ganael LAPLANCHE
Created:
2016-01-21 11:33:53 UTC
Size:
2.15 KB
patch
obsolete
>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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202097
:
165912
| 165913