[Open-FCoE] [PATCH 2/3] libfc: Add a debug print to the event handler

Robert Love robert.w.love at intel.com
Thu Oct 2 17:51:12 UTC 2008


This just adds a small debug statement that helps debug
events.

Signed-off-by: Robert Love <robert.w.love at intel.com>
---

 drivers/scsi/libfc/fc_lport.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index de55d0e..b1854b9 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -79,6 +79,9 @@ static void fc_lport_rport_event(struct fc_lport *lport, u32 port_id,
 {
 	struct fc_rport *rport = lport->tt.rport_lookup(lport, port_id);
 
+	if (fc_lport_debug)
+		FC_DBG("Received a %d event for port (%6x)\n", event, port_id);
+
 	if (port_id == FC_FID_DIR_SERV) {
 		mutex_lock(&lport->lp_mutex);
 		switch (event) {




More information about the devel mailing list