diff 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
line wrap: on
line diff
--- a/rvinterf/lowlevel/rvifmain.c	Tue Jun 06 23:17:10 2023 +0000
+++ b/rvinterf/lowlevel/rvifmain.c	Wed Jun 07 00:20:26 2023 +0000
@@ -21,6 +21,8 @@
 extern u_char rxpkt[];
 extern size_t rxpkt_len;
 
+extern void output_cont_logpref();
+
 struct client *client_head;
 int socketpair_fd;
 
@@ -220,8 +222,12 @@
 			goto unknown;
 		if (extlcd_program)
 			output_to_extlcd();
-		else
+		else {
 			report_extui_packet();
+			if (verbose >= 2)
+				packet_hex_dump(rxpkt, (unsigned) rxpkt_len,
+						output_cont_logpref);
+		}
 		return;
 	case RVT_TCH_HEADER:
 		if (!no_output || logF) {