From b35bda38e133539195520ce42de17639b961b1b5 Mon Sep 17 00:00:00 2001 From: agc Date: Sun, 2 Sep 2007 18:50:49 +0000 Subject: [PATCH] Cosmetic change to a long line Don't reset the target session's idea of the disk id whenever input is received. --- dist/iscsi/src/target.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/iscsi/src/target.c b/dist/iscsi/src/target.c index fa97fa362a77..2fcc969b308a 100644 --- a/dist/iscsi/src/target.c +++ b/dist/iscsi/src/target.c @@ -889,7 +889,11 @@ login_command_t(target_session_t * sess, uint8_t *header) } set_session_parameters(sess->params, &sess->sess_params); #ifdef HAVE_SYSLOG_H - syslog(LOG_INFO, "> %s login from %s on %s", param_val(sess->params, "SessionType"), param_val(sess->params, "InitiatorName"), sess->initiator); + syslog(LOG_INFO, "> %s login from %s on %s disk %d", + param_val(sess->params, "SessionType"), + param_val(sess->params, "InitiatorName"), + sess->initiator, + sess->d); #endif } /* No errors */ @@ -1610,7 +1614,7 @@ target_listen(globals_t *gp) /* Accept connection, spawn session thread, and */ /* clean up old threads */ - sess->d = i = iscsi_waitfor_connection(gp->sockv, gp->sockc, gp->config_file, &newconn); + i = iscsi_waitfor_connection(gp->sockv, gp->sockc, gp->config_file, &newconn); iscsi_trace(TRACE_NET_DEBUG, __FILE__, __LINE__, "waiting for %s connection on port %hd\n", iscsi_address_family(gp->famv[i]),