Skip to content

Commit

Permalink
drivers: nxp_enet: Add link state logging message
Browse files Browse the repository at this point in the history
Add info logging message to NXP ENET MAC driver about link state.

Signed-off-by: Declan Snyder <[email protected]>
  • Loading branch information
decsny authored and carlescufi committed Dec 11, 2023
1 parent 247f9e6 commit 79b00f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/ethernet/eth_nxp_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ static void nxp_enet_phy_cb(const struct device *phy,
} else {
net_eth_carrier_on(data->iface);
}

LOG_INF("Link is %s", state->is_up ? "up" : "down");
}


Expand Down

0 comments on commit 79b00f6

Please sign in to comment.