]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq_gem: Cleanup debug messages
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Sat, 5 Jan 2013 03:57:22 +0000 (13:57 +1000)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 9 Jan 2013 14:50:02 +0000 (15:50 +0100)
A couple of printfs intended for debugging were commented out. debug()ified
them. Move the one about packet RX to a more appropriate location. Previously
it would only trigger once in the case where multiple packets were received
in quick succession. Now it will trigger once for every packet.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
drivers/net/zynq_gem_wrap.c

index 62adce2bb0099e50febd5837f931c33f55a73d61..d7ea98ad42ab98cfbf59d78018a9a9493580325f 100644 (file)
@@ -461,7 +461,7 @@ int Xgmac_send(struct eth_device *dev, void *packet, int length)
 
        if (Status & XEMACPSS_TXSR_TXCOMPL_MASK) {
 
-//             printf("tx packet sent\n");
+               debug("tx packet sent\n");
 
                /*
                 * Now that the frame has been sent, post process our TxBDs.
@@ -501,9 +501,6 @@ int Xgmac_rx(struct eth_device *dev)
        XEmacPss_WriteReg(EmacPssInstancePtr->Config.BaseAddress,
                                XEMACPSS_RXSR_OFFSET, status);
        if (status & XEMACPSS_RXSR_FRAMERX_MASK) {
-
-//             printf("rx packet received\n");
-
                do {
                        retval = Xgmac_process_rx(EmacPssInstancePtr);
                } while (retval == 0) ;
@@ -639,6 +636,7 @@ int Xgmac_process_rx(XEmacPss * EmacPssInstancePtr)
        }
        memcpy(buffer, (void *)hwbuf, frame_len);
        Xgmac_next_rx_buf(EmacPssInstancePtr);
+       debug("rx packet received\n");
        NetReceive(buffer, frame_len);
 
        return (0);