git: f577b919b360 - stable/14 - ctld: Drop some #if 0'd debugging traces

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 27 Jan 2026 18:44:04 UTC
The branch stable/14 has been updated by jhb:

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

commit f577b919b36027d8976b212d72ddb7c36061e947
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-02-12 19:25:22 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-01-27 18:15:56 +0000

    ctld: Drop some #if 0'd debugging traces
    
    Suggested by:   asomers
    Reviewed by:    asomers
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D48927
    
    (cherry picked from commit ca8a23d6cb32d8af18f3c249ed604c8db7c68d08)
---
 usr.sbin/ctld/kernel.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/usr.sbin/ctld/kernel.c b/usr.sbin/ctld/kernel.c
index 2ec54e504b7a..df6367c3658a 100644
--- a/usr.sbin/ctld/kernel.c
+++ b/usr.sbin/ctld/kernel.c
@@ -544,10 +544,6 @@ retry_port:
 			    port->port_id, name);
 			pp = pport_find(kports, name);
 			if (pp == NULL) {
-#if 0
-				log_debugx("found new kernel port %u \"%s\"",
-				    port->port_id, name);
-#endif
 				pp = pport_new(kports, name, port->port_id);
 				if (pp == NULL) {
 					log_warnx("pport_new failed");
@@ -564,10 +560,6 @@ retry_port:
 
 		targ = target_find(conf, port->cfiscsi_target);
 		if (targ == NULL) {
-#if 0
-			log_debugx("found new kernel target %s for CTL port %ld",
-			    port->cfiscsi_target, port->port_id);
-#endif
 			targ = target_new(conf, port->cfiscsi_target);
 			if (targ == NULL) {
 				log_warnx("target_new failed");
@@ -579,10 +571,6 @@ retry_port:
 			continue;
 		pg = portal_group_find(conf, port->ctld_portal_group_name);
 		if (pg == NULL) {
-#if 0
-			log_debugx("found new kernel portal group %s for CTL port %ld",
-			    port->ctld_portal_group_name, port->port_id);
-#endif
 			pg = portal_group_new(conf, port->ctld_portal_group_name);
 			if (pg == NULL) {
 				log_warnx("portal_group_new failed");