From 488feef85229c08cd3aa1fa183bc8f483d2ae832 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Mon, 24 Aug 2009 10:33:39 -0400 Subject: [PATCH] Add debug message for Blackfin Ethernet Rx function. Add a simple print for the Blackfin's Ethernet Rx function, so we can debug incomming Ethernet functions easier. Signed-off-by: Robin Getz Signed-off-by: Ben Warren --- drivers/net/bfin_mac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index 12d98c2df5..ec45b6355a 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c @@ -186,6 +186,9 @@ static int bfin_EMAC_recv(struct eth_device *dev) printf("Ethernet: bad frame\n"); break; } + + debug("%s: len = %d\n", __func__, length - 4); + NetRxPackets[rxIdx] = (volatile uchar *)(rxbuf[rxIdx]->FrmData->Dest); NetReceive(NetRxPackets[rxIdx], length - 4); -- 2.39.5