Diff between dcd08628a2d23c004244cae6dc47647b869396b3 and 9287efd2beb82eb40e55c86522a9bdfa54e55053

Changed Files

File Additions Deletions Status
monitor/analyze.c +3 -0 modified

Full Patch

diff --git a/monitor/analyze.c b/monitor/analyze.c
index b027b3c..eea3c9e 100644
--- a/monitor/analyze.c
+++ b/monitor/analyze.c
@@ -309,6 +309,9 @@ void analyze_trace(const char *path)
 		case BTSNOOP_OPCODE_SCO_RX_PKT:
 			sco_pkt(&tv, index, buf, pktlen);
 			break;
+		default:
+			fprintf(stderr, "Wrong opcode %u\n", opcode);
+			goto done;
 		}
 
 		num_packets++;