changeset 941:8fc3b72eb2c6

rvinterf -vv TCH raw dump: write to log only if running with -l
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 24 May 2023 06:46:26 +0000
parents ec5f51d33fdc
children fab04df64690
files rvinterf/lowlevel/format_fc.c rvinterf/lowlevel/logsent.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/lowlevel/format_fc.c	Wed May 24 06:43:15 2023 +0000
+++ b/rvinterf/lowlevel/format_fc.c	Wed May 24 06:46:26 2023 +0000
@@ -13,7 +13,7 @@
 extern u_char rxpkt[];
 extern size_t rxpkt_len;
 
-extern void output_cont();
+extern void output_cont_logpref();
 
 void
 print_ati_output()
@@ -39,7 +39,7 @@
 print_tch_output_raw()
 {
 	output_line("Rx TCH packet");
-	packet_hex_dump(rxpkt, (unsigned) rxpkt_len, output_cont);
+	packet_hex_dump(rxpkt, (unsigned) rxpkt_len, output_cont_logpref);
 }
 
 void
--- a/rvinterf/lowlevel/logsent.c	Wed May 24 06:43:15 2023 +0000
+++ b/rvinterf/lowlevel/logsent.c	Wed May 24 06:46:26 2023 +0000
@@ -13,6 +13,7 @@
 extern FILE *logF;
 
 extern void output_cont();
+extern void output_cont_logpref();
 
 static void
 log_sent_ati(pkt, pktlen)
@@ -55,7 +56,7 @@
 	case RVT_TCH_HEADER:
 		if (verbose >= 2) {
 			output_line("Sent TCH packet");
-			packet_hex_dump(pkt, pktlen, output_cont);
+			packet_hex_dump(pkt, pktlen, output_cont_logpref);
 		} else {
 			tch_inc_count_tx();
 		}