mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 05:06:31 +00:00
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
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user