FreeCalypso > hg > freecalypso-tools
comparison rvinterf/lowlevel/rvifmain.c @ 949:80feb10f8ef8
rvinterf -vv: emit hex dump of obsolete EXTUI packets
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 07 Jun 2023 00:20:26 +0000 |
parents | bd6dd6120180 |
children | 21604c3413c1 |
comparison
equal
deleted
inserted
replaced
948:d16222179c67 | 949:80feb10f8ef8 |
---|---|
18 extern int target_fd, listener; | 18 extern int target_fd, listener; |
19 extern char *extlcd_program; | 19 extern char *extlcd_program; |
20 | 20 |
21 extern u_char rxpkt[]; | 21 extern u_char rxpkt[]; |
22 extern size_t rxpkt_len; | 22 extern size_t rxpkt_len; |
23 | |
24 extern void output_cont_logpref(); | |
23 | 25 |
24 struct client *client_head; | 26 struct client *client_head; |
25 int socketpair_fd; | 27 int socketpair_fd; |
26 | 28 |
27 char *logfname; | 29 char *logfname; |
218 case RVT_EXTUI_HEADER: | 220 case RVT_EXTUI_HEADER: |
219 if (rxpkt_len < 5 || !(rxpkt_len & 1)) | 221 if (rxpkt_len < 5 || !(rxpkt_len & 1)) |
220 goto unknown; | 222 goto unknown; |
221 if (extlcd_program) | 223 if (extlcd_program) |
222 output_to_extlcd(); | 224 output_to_extlcd(); |
223 else | 225 else { |
224 report_extui_packet(); | 226 report_extui_packet(); |
227 if (verbose >= 2) | |
228 packet_hex_dump(rxpkt, (unsigned) rxpkt_len, | |
229 output_cont_logpref); | |
230 } | |
225 return; | 231 return; |
226 case RVT_TCH_HEADER: | 232 case RVT_TCH_HEADER: |
227 if (!no_output || logF) { | 233 if (!no_output || logF) { |
228 if (verbose >= 2) | 234 if (verbose >= 2) |
229 print_tch_output_raw(); | 235 print_tch_output_raw(); |