FreeCalypso > hg > freecalypso-sw
diff rvinterf/trdump.c @ 169:e01e3a60c858
rvinterf: background mode implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 20 Nov 2013 02:58:35 +0000 |
parents | 56b53c289785 |
children |
line wrap: on
line diff
--- a/rvinterf/trdump.c Tue Nov 19 06:06:42 2013 +0000 +++ b/rvinterf/trdump.c Wed Nov 20 02:58:35 2013 +0000 @@ -111,6 +111,23 @@ } void +print_etm_output_raw() +{ + int i; + char *dp; + + dp = pr_item; + strcpy(dp, "ETM:"); + dp += 4; + for (i = 1; i < rxpkt_len; i++) { + sprintf(dp, " %02X", rxpkt[i]); + dp += 3; + } + *dp = '\0'; + print_item(); +} + +void print_unknown_packet() { int i; @@ -142,6 +159,9 @@ case RVT_L23_HEADER: print_g23_trace(); return; + case RVT_TM_HEADER: + print_etm_output_raw(); + return; default: unknown: print_unknown_packet();