[U-Boot] [PATCH] Add debug message for Blackfin Ethernet Rx function.

Ben Warren biggerbadderben at gmail.com
Tue Aug 25 22:33:58 CEST 2009


Robin Getz wrote:
> Add a simple print for the Blackfin's Ethernet Rx function,
> so we can debug incomming Ethernet functions easier.
>
> Signed-off-by: Robin Getz <rgetz at blackfin.uclinux.org>
> ---
>  drivers/net/bfin_mac.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
> index 12d98c2..ec45b63 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);
>   
Applied to net/next

regards,
Ben


More information about the U-Boot mailing list