FreeCalypso > hg > freecalypso-tools
comparison rvinterf/lowlevel/logsent.c @ 932:3d1abb9f05ef
rvinterf proper: move TM logging to new module
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 23 May 2023 06:20:21 +0000 |
parents | 65953c172f24 |
children | bd6dd6120180 |
comparison
equal
deleted
inserted
replaced
931:bb7a03cc1e43 | 932:3d1abb9f05ef |
---|---|
34 strcpy(buf, "Sent "); | 34 strcpy(buf, "Sent "); |
35 format_g23_packet(pkt, pktlen, buf + 5); | 35 format_g23_packet(pkt, pktlen, buf + 5); |
36 output_line(buf); | 36 output_line(buf); |
37 } | 37 } |
38 | 38 |
39 void | |
39 log_sent_packet(pkt, pktlen) | 40 log_sent_packet(pkt, pktlen) |
40 u_char *pkt; | 41 u_char *pkt; |
41 { | 42 { |
42 if (no_output && !logF) | 43 if (no_output && !logF) |
43 return; | 44 return; |
44 switch (pkt[0]) { | 45 switch (pkt[0]) { |
45 case RVT_L23_HEADER: | 46 case RVT_L23_HEADER: |
46 log_sent_gpf(pkt, pktlen); | 47 log_sent_gpf(pkt, pktlen); |
47 return; | 48 return; |
48 case RVT_TM_HEADER: | 49 case RVT_TM_HEADER: |
49 output_line("Sent Test Mode packet"); | 50 log_sent_tm(pkt, pktlen); |
50 packet_hex_dump(pkt, pktlen, output_cont); | |
51 return; | 51 return; |
52 case RVT_AT_HEADER: | 52 case RVT_AT_HEADER: |
53 log_sent_ati(pkt, pktlen); | 53 log_sent_ati(pkt, pktlen); |
54 return; | 54 return; |
55 case RVT_TCH_HEADER: | 55 case RVT_TCH_HEADER: |