Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/midirecord log how much data is valid in debug mode.



details:   https://anonhg.NetBSD.org/src/rev/dda248623688
branches:  trunk
changeset: 374672:dda248623688
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue May 09 20:42:19 2023 +0000

description:
log how much data is valid in debug mode.

diffstat:

 usr.bin/midirecord/midirecord.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 4021ac377823 -r dda248623688 usr.bin/midirecord/midirecord.c
--- a/usr.bin/midirecord/midirecord.c   Tue May 09 20:39:24 2023 +0000
+++ b/usr.bin/midirecord/midirecord.c   Tue May 09 20:42:19 2023 +0000
@@ -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:



Home | Main Index | Thread Index | Old Index