Module Name: src
Committed By: mrg
Date: Tue May 9 20:42:19 UTC 2023
Modified Files:
src/usr.bin/midirecord: midirecord.c
Log Message:
log how much data is valid in debug mode.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/midirecord/midirecord.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/midirecord/midirecord.c
diff -u src/usr.bin/midirecord/midirecord.c:1.12 src/usr.bin/midirecord/midirecord.c:1.13
--- src/usr.bin/midirecord/midirecord.c:1.12 Sat Jun 3 21:31:14 2017
+++ src/usr.bin/midirecord/midirecord.c Tue May 9 20:42:19 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: midirecord.c,v 1.12 2017/06/03 21:31:14 mrg Exp $ */
+/* $NetBSD: midirecord.c,v 1.13 2023/05/09 20:42:19 mrg Exp $ */
/*
* Copyright (c) 2014, 2015, 2017 Matthew R. Green
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: midirecord.c,v 1.12 2017/06/03 21:31:14 mrg Exp $");
+__RCSID("$NetBSD: midirecord.c,v 1.13 2023/05/09 20:42:19 mrg Exp $");
#endif
#include <sys/param.h>
@@ -576,11 +576,12 @@ midi_event_to_output(seq_event_t e, u_ch
{
size_t size = 0;
- LOG("event: %02x:%02x:%02x:%02x %02x:%02x:%02x:%02x", e.tag,
+ LOG("event: %02x:%02x:%02x:%02x %02x:%02x:%02x:%02x (%zu valid)",
+ e.tag,
e.unknown.byte[0], e.unknown.byte[1],
e.unknown.byte[2], e.unknown.byte[3],
e.unknown.byte[4], e.unknown.byte[5],
- e.unknown.byte[6]);
+ e.unknown.byte[6], bufsize);
switch (e.tag) {
case SEQ_LOCAL: