[ECOS] consistend debug printing in packages\io\eth\current\src\net\eth_drv.c

Jürgen Lambrecht J.Lambrecht@televic.com
Mon Jun 2 15:47:00 GMT 2008


debug printing (#ifdef CYGDBG_IO_ETH_DRIVERS_DEBUG) is not consistenf 
for rx and tx
For RX (in eth_drv_recv()) the sg_list[i] is printed with i starting from 0.
But for TX (in eth_drv_send()) the sg_list[i] is printed with i starting 
from 1. This because i (actually sg_len) is incremented before the debug 
printing instead of after it.

In attachment my patch.

Kind regards,

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: eth_drv_udiff.txt
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20080602/02c45cc7/attachment.txt>
-------------- next part --------------
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list