Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2025 14:04:03 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ce8cfd998b4f - main - ctld: Remove dead logging code
Message-ID:  <202504111404.53BE43Fg053799@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

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

commit ce8cfd998b4fc01cfd47e009b0f6dead404841b4
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-04-11 14:02:29 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-04-11 14:02:29 +0000

    ctld: Remove dead logging code
    
    Portal discovery auth groups are always named auth groups
    
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D49649
---
 usr.sbin/ctld/login.cc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/usr.sbin/ctld/login.cc b/usr.sbin/ctld/login.cc
index 84d329964ada..961f57eb03fb 100644
--- a/usr.sbin/ctld/login.cc
+++ b/usr.sbin/ctld/login.cc
@@ -1003,12 +1003,8 @@ login(struct ctld_connection *conn)
 	} else {
 		assert(conn->conn_session_type == CONN_SESSION_TYPE_DISCOVERY);
 		ag = pg->pg_discovery_auth_group;
-		if (ag->ag_name != NULL) {
-			log_debugx("initiator requests "
-			    "discovery session; auth-group \"%s\"", ag->ag_name);
-		} else {
-			log_debugx("initiator requests discovery session");
-		}
+		log_debugx("initiator requests discovery session; %s",
+		    ag->ag_label);
 	}
 
 	if (ag->ag_type == AG_TYPE_DENY) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202504111404.53BE43Fg053799>