From b0a728164697d81d343757d0ff5e8700e509c2d9 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Wed, 4 Aug 2010 14:22:54 +0000 Subject: [PATCH] Remove a bunch of unneeded printk lines. Also, this line: TRACE_DBG("Created tid '%08lX'", (unsigned long)&tr_id[4]); is wrong. All it will do is print the address of the fifth byte in the tr_id. It should cast to an unsigned long * and deref it, at least. However, I have anothe change that prints out the tr_id as a SAS address. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1934 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst_local/scst_local.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index 0e80c1ab3..3352f4111 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -657,18 +657,12 @@ static int scst_local_get_initiator_port_transport_id( scst_lcl_host = (struct scst_local_host_info *) scst_sess_get_tgt_priv(scst_sess); - printk(KERN_INFO "%s: scst_lcl_host: %p\n", __func__, scst_lcl_host); - printk(KERN_INFO "%s: sess = %p\n", __func__, scst_sess); - tr_id_size = 24; /* A SAS TransportID */ - printk(KERN_INFO "%s: tr_id_size: %d\n", __func__, tr_id_size); - tr_id = kzalloc(tr_id_size, GFP_KERNEL); if (tr_id == NULL) { PRINT_ERROR("Allocation of TransportID (size %d) failed", tr_id_size); - printk(KERN_INFO "%s: failed to allocate space\n", __func__); res = -ENOMEM; goto out; } @@ -676,8 +670,6 @@ static int scst_local_get_initiator_port_transport_id( tr_id[0] = 0x00 | SCSI_TRANSPORTID_PROTOCOLID_SAS; for (i = 0; i < scst_local_num_tgts; i++) { - printk(KERN_INFO "%s: session: %p\n", - __func__, scst_lcl_host->session[i]); /* * We are called before the session is returned below */