FreeCalypso > hg > freecalypso-sw
comparison rvinterf/lowlevel/format.c @ 333:2ac2f6d88bb2
rvinterf & rvtdump: use the new libg23 for G23 packet decoding
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Tue, 22 Apr 2014 05:11:03 +0000 |
| parents | 05874f1ddacb |
| children | d527ac304ad5 |
comparison
equal
deleted
inserted
replaced
| 332:28b4d3c9e85d | 333:2ac2f6d88bb2 |
|---|---|
| 11 #include "../include/limits.h" | 11 #include "../include/limits.h" |
| 12 | 12 |
| 13 extern u_char rxpkt[]; | 13 extern u_char rxpkt[]; |
| 14 extern size_t rxpkt_len; | 14 extern size_t rxpkt_len; |
| 15 | 15 |
| 16 char fmtbuf[MAX_PKT_FROM_TARGET*8]; /* size it generously */ | 16 static char fmtbuf[MAX_PKT_FROM_TARGET*8]; /* size it generously */ |
| 17 | 17 |
| 18 void | 18 void |
| 19 print_rv_trace() | 19 print_rv_trace() |
| 20 { | 20 { |
| 21 int i, c; | 21 int i, c; |
| 94 *dp = '\0'; | 94 *dp = '\0'; |
| 95 output_line(fmtbuf); | 95 output_line(fmtbuf); |
| 96 } | 96 } |
| 97 | 97 |
| 98 void | 98 void |
| 99 print_g23_trace() | |
| 100 { | |
| 101 /* messy logic factored out into libg23 */ | |
| 102 format_g23_packet(rxpkt, (int)rxpkt_len, fmtbuf); | |
| 103 output_line(fmtbuf); | |
| 104 } | |
| 105 | |
| 106 void | |
| 99 print_etm_output_raw() | 107 print_etm_output_raw() |
| 100 { | 108 { |
| 101 int i; | 109 int i; |
| 102 char *dp; | 110 char *dp; |
| 103 | 111 |
