X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fuli526x.c;h=9477851a75e0d3253055654ac26af36bca117504;hb=679ec154620eaf377143ba429124abc91abed0eb;hp=79d29ae82200fac7d4f5de69df2e5b67ba412af0;hpb=9d2459f3532c009bb903b02b57079a3862420a5f;p=oweals%2Fu-boot.git diff --git a/drivers/net/uli526x.c b/drivers/net/uli526x.c index 79d29ae822..9477851a75 100644 --- a/drivers/net/uli526x.c +++ b/drivers/net/uli526x.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved. + * Copyright (C) 2007 Freescale Semiconductor, Inc. * * Author: Roy Zang , Sep, 2007 * @@ -16,15 +16,13 @@ #include #include #include +#include #include #include #include /* some kernel function compatible define */ -#if defined(CONFIG_CMD_NET) && defined(CONFIG_NET_MULTI) && \ - defined(CONFIG_ULI526X) - #undef DEBUG /* Board/System/Debug information/definition */ @@ -566,7 +564,7 @@ static int uli526x_rx_packet(struct eth_device *dev) /* error summary bit check */ if (rdes0 & 0x8000) { /* This is a error packet */ - printf("Eroor: rdes0: %lx\n", rdes0); + printf("Error: rdes0: %x\n", rdes0); } if (!(rdes0 & 0x8000) || @@ -993,4 +991,3 @@ static void set_mac_addr(struct eth_device *dev) udelay(10); return; } -#endif