Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jan 2026 16:58:29 +0000
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3b9e776498a7 - main - sound: Retire MIDIQ_DEBUG
Message-ID:  <6957f935.fc7d.23f0ecef@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=3b9e776498a7e3e96c1a351fdd561f25803718df

commit 3b9e776498a7e3e96c1a351fdd561f25803718df
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-01-02 16:56:31 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-01-02 16:58:06 +0000

    sound: Retire MIDIQ_DEBUG
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 sys/dev/sound/midi/midiq.h | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/sys/dev/sound/midi/midiq.h b/sys/dev/sound/midi/midiq.h
index 17def1805363..27958ff4c23e 100644
--- a/sys/dev/sound/midi/midiq.h
+++ b/sys/dev/sound/midi/midiq.h
@@ -52,38 +52,23 @@ struct name {                           \
 #define MIDIQ_FULL(head)        ((head).h == -1)
 #define MIDIQ_AVAIL(head)       (MIDIQ_FULL(head) ? 0 : (head).s - MIDIQ_LENBASE(head))
 #define MIDIQ_LEN(head)		((head).s - MIDIQ_AVAIL(head))
-#define MIDIQ_DEBUG 0
 /*
  * No protection against overflow, underflow
  */
 #define MIDIQ_ENQ(head, buf, size) do {                                                                 \
-		if(MIDIQ_DEBUG)\
-                	printf("#1 %p %p bytes copied %jd tran req s %d h %d t %d\n",            \
-			       &(head).b[(head).h], (buf),                                        \
-			       (intmax_t)(sizeof(*(head).b) *                                     \
-					  MIN( (size), (head).s - (head).h) ),                   \
-			       (size), (head).h, (head).t);               \
                 MIDIQ_MOVE(&(head).b[(head).h], (buf), sizeof(*(head).b) * MIN((size), (head).s - (head).h));                       \
                 if( (head).s - (head).h < (size) ) {                                                    \
-			if(MIDIQ_DEBUG) \
-                        	printf("#2 %p %p bytes copied %jd\n",  (head).b, (buf) + (head).s - (head).h, (intmax_t)sizeof(*(head).b) * ((size) - (head).s + (head).h) );      \
                         MIDIQ_MOVE((head).b, (buf) + (head).s - (head).h, sizeof(*(head).b) * ((size) - (head).s + (head).h) );      \
 		} \
                 (head).h+=(size);                                                                         \
                 (head).h%=(head).s;                                                                     \
 		if(MIDIQ_EMPTY(head)) (head).h=-1; \
-		if(MIDIQ_DEBUG)\
-                	printf("#E h %d t %d\n", (head).h, (head).t);                       \
 } while (0)
 
 #define MIDIQ_DEQ_I(head, buf, size, move, update) do {                                                                 \
 		if(MIDIQ_FULL(head)) (head).h=(head).t; \
-		if(MIDIQ_DEBUG)\
-                	printf("#1 %p %p bytes copied %jd tran req s %d h %d t %d\n", &(head).b[(head).t], (buf), (intmax_t)sizeof(*(head).b) * MIN((size), (head).s - (head).t), (size), (head).h, (head).t);                       \
                 if (move) MIDIQ_MOVE((buf), &(head).b[(head).t], sizeof(*(head).b) * MIN((size), (head).s - (head).t));                       \
                 if( (head).s - (head).t < (size) ) {                                                    \
-			if(MIDIQ_DEBUG) \
-                        	printf("#2 %p %p bytes copied %jd\n",  (head).b, (buf) + (head).s - (head).t, (intmax_t)sizeof(*(head).b) * ((size) - (head).s + (head).t) );      \
                         if (move) MIDIQ_MOVE((buf) + (head).s - (head).t, (head).b, sizeof(*(head).b) * ((size) - (head).s + (head).t) );      \
 		} \
 		if (update) { \
@@ -92,8 +77,6 @@ struct name {                           \
 		} else { \
 		  if (MIDIQ_EMPTY(head)) (head).h=-1; \
 		} \
-		if(MIDIQ_DEBUG)\
-                	printf("#E h %d t %d\n", (head).h, (head).t);                       \
 } while (0)
 
 #define MIDIQ_SIZE(head) ((head).s)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6957f935.fc7d.23f0ecef>