From 79b00f6cd3988ae710a56e7ba898e7b8d6db7826 Mon Sep 17 00:00:00 2001 From: Declan Snyder Date: Thu, 7 Dec 2023 12:00:18 -0600 Subject: [PATCH] drivers: nxp_enet: Add link state logging message Add info logging message to NXP ENET MAC driver about link state. Signed-off-by: Declan Snyder --- drivers/ethernet/eth_nxp_enet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ethernet/eth_nxp_enet.c b/drivers/ethernet/eth_nxp_enet.c index 9c18b2d129a6fd..293143fd1a1253 100644 --- a/drivers/ethernet/eth_nxp_enet.c +++ b/drivers/ethernet/eth_nxp_enet.c @@ -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"); }