Move the declaration of the eh struct (used only when debugging is enabled)
from ofwn_put into the debug section. Approved by: nwhitehorn (mentor)
This commit is contained in:
parent
6f9943822b
commit
cb1b50fa7c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215437
@ -90,11 +90,11 @@ ofwn_probe(struct netif *nif, void *machdep_hint)
|
||||
static int
|
||||
ofwn_put(struct iodesc *desc, void *pkt, size_t len)
|
||||
{
|
||||
struct ether_header *eh;
|
||||
size_t sendlen;
|
||||
ssize_t rv;
|
||||
|
||||
#if defined(NETIF_DEBUG)
|
||||
struct ether_header *eh;
|
||||
printf("netif_put: desc=0x%x pkt=0x%x len=%d\n", desc, pkt, len);
|
||||
eh = pkt;
|
||||
printf("dst: %s ", ether_sprintf(eh->ether_dhost));
|
||||
|
Loading…
Reference in New Issue
Block a user