changeset 471:b5f8ea41362b

gsmrec-dump: report DHF matches
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 May 2024 07:25:06 +0000
parents ea89eb8291bf
children d80ccb3c3970
files miscutil/gsmrec-dump.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/miscutil/gsmrec-dump.c	Tue May 14 07:13:59 2024 +0000
+++ b/miscutil/gsmrec-dump.c	Tue May 14 07:25:06 2024 +0000
@@ -6,6 +6,8 @@
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
+#include <string.h>
+#include <strings.h>
 #include "../libgsmfr2/tw_gsmfr.h"
 #include "../libgsmefr/gsm_efr.h"
 #include "../libtest/binreader.h"
@@ -47,6 +49,9 @@
 			n = 0;
 			for (i = 0; i < 5; i++)
 				printf(" %d", params[n++]);
+			if (!bcmp(frame, EFR_decoder_homing_frame,
+				  EFR_RTP_FRAME_LEN))
+				fputs(" (DHF)", stdout);
 			putchar('\n');
 			for (i = 0; i < 4; i++) {
 				putchar(' ');
@@ -61,6 +66,9 @@
 			n = 0;
 			for (i = 0; i < 8; i++)
 				printf(" %d", params[n++]);
+			if (!bcmp(frame, gsmfr_decoder_homing_frame,
+				  GSMFR_RTP_FRAME_LEN))
+				fputs(" (DHF)", stdout);
 			putchar('\n');
 			for (i = 0; i < 4; i++) {
 				putchar(' ');