FreeCalypso > hg > freecalypso-tools
changeset 933:bd6dd6120180
rvinterf: -v enables TM hex dump, -vv enables TCH hex dump
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 23 May 2023 06:24:37 +0000 |
parents | 3d1abb9f05ef |
children | 0d6be90ae74f |
files | rvinterf/lowlevel/logsent.c rvinterf/lowlevel/rvifmain.c rvinterf/lowlevel/rviftmode.c |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rvinterf/lowlevel/logsent.c Tue May 23 06:20:21 2023 +0000 +++ b/rvinterf/lowlevel/logsent.c Tue May 23 06:24:37 2023 +0000 @@ -53,7 +53,7 @@ log_sent_ati(pkt, pktlen); return; case RVT_TCH_HEADER: - if (verbose) { + if (verbose >= 2) { output_line("Sent TCH packet"); packet_hex_dump(pkt, pktlen, output_cont); } else {
--- a/rvinterf/lowlevel/rvifmain.c Tue May 23 06:20:21 2023 +0000 +++ b/rvinterf/lowlevel/rvifmain.c Tue May 23 06:24:37 2023 +0000 @@ -225,7 +225,7 @@ return; case RVT_TCH_HEADER: if (!no_output || logF) { - if (verbose) + if (verbose >= 2) print_tch_output_raw(); else tch_inc_count_rx();
--- a/rvinterf/lowlevel/rviftmode.c Tue May 23 06:20:21 2023 +0000 +++ b/rvinterf/lowlevel/rviftmode.c Tue May 23 06:24:37 2023 +0000 @@ -21,12 +21,14 @@ u_char *pkt; { output_line("Sent Test Mode packet"); - packet_hex_dump(pkt, pktlen, output_cont); + if (verbose >= 1) + packet_hex_dump(pkt, pktlen, output_cont); } void print_tm_output_new() { output_line("Rx Test Mode packet"); - packet_hex_dump(rxpkt, (unsigned) rxpkt_len, output_cont); + if (verbose >= 1) + packet_hex_dump(rxpkt, (unsigned) rxpkt_len, output_cont); }