changeset 972:6de5661d1fe1

gsm-fw/services/etm/etm_api.c: same fix in etm_pkt_send() as in tcs211-c139
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Fri, 13 Nov 2015 19:29:16 +0000
parents 53114af707f2
children 285505f98013
files gsm-fw/services/etm/etm_api.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/services/etm/etm_api.c	Sat Nov 07 06:59:51 2015 +0000
+++ b/gsm-fw/services/etm/etm_api.c	Fri Nov 13 19:29:16 2015 +0000
@@ -253,11 +253,12 @@
 int etm_pkt_send(T_ETM_PKT *pkt)
 {
     extern unsigned char etm_trace_user_id; 
-    uint8 *buf, cksum = 0, sendsize, size;
+    uint8 *buf, cksum = 0;
+    uint16 sendsize, size;
     int error = ETM_OK;
 
     buf = (uint8 *) &pkt->mid;
-    sendsize = size = pkt->size + 2; //one for mid, one for status  
+    sendsize = size = pkt->size + 2; //one for mid, one for status
 
     tr_etm(TgTrEtmLow, "ETM API: _pkt_send: size(%d)", sendsize);
 
@@ -269,8 +270,8 @@
     sendsize += 1; // one for checksum
 
     tr_etm_hexdump(TgTrEtmLow, &pkt->mid, sendsize);
-   
-    error = rvt_send_trace_cpy((uint8 *) &pkt->mid, etm_trace_user_id, 
+
+    error = rvt_send_trace_cpy((uint8 *) &pkt->mid, etm_trace_user_id,
                                sendsize, RVT_BINARY_FORMAT);
     if(error < 0)
         tr_etm(TgTrFatal, "ETM API: _pkt_send: ERROR(%d)", error);