Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NET: Don't unconditionally turn on Ethernet debugging #425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 3B2/3b2_ni.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ t_stat ni_attach(UNIT *uptr, CONST char *cptr)
return SCPE_MEM;
}

status = eth_open(ni.eth, cptr, &ni_dev, DBG_ETH);
status = eth_open(ni.eth, cptr, &ni_dev, ni_dev.dctrl & DBG_ETH);
if (status != SCPE_OK) {
sim_debug(DBG_ERR, &ni_dev, "ni_attach failure: open\n");
free(tptr);
Expand Down
2 changes: 1 addition & 1 deletion PDP10/kx10_imp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3155,7 +3155,7 @@ t_stat imp_attach(UNIT* uptr, CONST char* cptr)
strcpy(tptr, cptr);

memset(&imp_data.ReadQ, 0, sizeof(ETH_QUE));
status = eth_open(&imp_data.etherface, cptr, &imp_dev, DEBUG_ETHER);
status = eth_open(&imp_data.etherface, cptr, &imp_dev, imp_dev.dctrl & DEBUG_ETHER);
if (status != SCPE_OK) {
free(tptr);
return status;
Expand Down
2 changes: 1 addition & 1 deletion PDP11/pdp11_xq.c
Original file line number Diff line number Diff line change
Expand Up @@ -2886,7 +2886,7 @@ t_stat xq_attach(UNIT* uptr, CONST char* cptr)
return SCPE_MEM;
}

status = eth_open(xq->var->etherface, cptr, xq->dev, DBG_ETH);
status = eth_open(xq->var->etherface, cptr, xq->dev, xq->dev->dctrl & DBG_ETH);
if (status != SCPE_OK) {
free(tptr);
free(xq->var->etherface);
Expand Down
2 changes: 1 addition & 1 deletion PDP11/pdp11_xu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ t_stat xu_attach(UNIT* uptr, CONST char* cptr)
return SCPE_MEM;
}

status = eth_open(xu->var->etherface, cptr, xu->dev, DBG_ETH);
status = eth_open(xu->var->etherface, cptr, xu->dev, xu->dev->dctrl & DBG_ETH);
if (status != SCPE_OK) {
free(tptr);
free(xu->var->etherface);
Expand Down
2 changes: 1 addition & 1 deletion SEL32/sel32_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ t_stat ec_attach(UNIT* uptr, CONST char* cptr)

memcpy(&ec_data.macs[0], &ec_data.mac, sizeof (ETH_MAC));
memcpy(&ec_data.macs[1], &broadcast_ethaddr, sizeof (ETH_MAC));
status = eth_open(&ec_data.etherface, cptr, &ec_dev, DEBUG_ETHER);
status = eth_open(&ec_data.etherface, cptr, &ec_dev, ec_dev.dctrl & DEBUG_ETHER);
if (status != SCPE_OK) {
free(tptr);
return status;
Expand Down
2 changes: 1 addition & 1 deletion VAX/vax_xs.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ if (!xs->var->etherface) {
return SCPE_MEM;
}

status = eth_open(xs->var->etherface, cptr, xs->dev, DBG_ETH);
status = eth_open(xs->var->etherface, cptr, xs->dev, xs->dev->dctrl & DBG_ETH);
if (status != SCPE_OK) {
free(tptr);
free(xs->var->etherface);
Expand Down
Loading