[svn-commits] tzafrir: trunk r1418 - /trunk/xpp/utils/fpga_load.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Sep 6 13:19:40 MST 2006


Author: tzafrir
Date: Wed Sep  6 15:19:39 2006
New Revision: 1418

URL: http://svn.digium.com/view/zaptel?rev=1418&view=rev
Log:
* fpga_load.c: fix a size error. Now works on amd64 .
* fpga_load -vvv now dumps the transmitted packet.

Modified:
    trunk/xpp/utils/fpga_load.c

Modified: trunk/xpp/utils/fpga_load.c
URL: http://svn.digium.com/view/zaptel/trunk/xpp/utils/fpga_load.c?rev=1418&r1=1417&r2=1418&view=diff
==============================================================================
--- trunk/xpp/utils/fpga_load.c (original)
+++ trunk/xpp/utils/fpga_load.c Wed Sep  6 15:19:39 2006
@@ -313,7 +313,7 @@
 	phead->d.data_packet.seq = seq;
 	phead->d.data_packet.reserved = 0x00;
 	memcpy(phead->d.data_packet.data, data, len);
-	len += sizeof(phead);
+	len += sizeof(hexline->d.content.header);
 	if(verbose >= LOG_INFO)
 		INFO("%04d+\r", seq);
 	ret = usb_bulk_write(handle, MY_EP_OUT, (char *)phead, len, TIMEOUT);
@@ -324,6 +324,8 @@
 		ERR("usb: bulk_write short write (%d)\n", ret);
 		return -EFAULT;
 	}
+	if (verbose >= LOG_DEBUG)
+		dump_packet((char*)phead, len);
 	ret = usb_bulk_read(handle, MY_EP_IN, buf, sizeof(buf), TIMEOUT);
 	if(ret < 0) {
 		ERR("usb: bulk_read failed (%d)\n", ret);



More information about the svn-commits mailing list