Skip to contentSkip to conversation

scsi: cxgb4i: clean up a debug printk

PATCH Applied Dan Carpenter 3 participants 3 messages Jul 13, 2020 – Jul 14, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: cxgb4i: clean up a debug printk

The pr_fmt() at the top of the file already includes the __func__ so we can remove the duplicative "cxgbi_conn_init_pdu:" from the string here. Now it all fits on one line as well.

---
 drivers/scsi/cxgbi/libcxgbi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/cxgbi/libcxgbi.c +1 -2
index 1fb101c616b7..ba1593be626c 100644
@@ -2182,8 +2182,7 @@ int cxgbi_conn_init_pdu(struct iscsi_task *task, unsigned int offset,
 	}
 
 	log_debug(1 << CXGBI_DBG_ISCSI | 1 << CXGBI_DBG_PDU_TX,
-		  "cxgbi_conn_init_pdu: tdata->total_count %u, "
-		  "tdata->total_offset %u\n",
+		  "data->total_count %u, tdata->total_offset %u\n",
 		  tdata->total_count, tdata->total_offset);
 
 	expected_count = tdata->total_count;
Signature · 1 line
2.27.0
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Dan Carpenter

The pr_fmt() at the top of the file already includes the __func__ so we can remove the duplicative "cxgbi_conn_init_pdu:" from the string here. Now it all fits on one line as well.

---
 drivers/scsi/cxgbi/libcxgbi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/cxgbi/libcxgbi.c +0 -0
index 1fb101c616b7..ba1593be626c 100644

drivers/scsi/cxgbi/libcxgbi.c int cxgbi_conn_init_pdu(struct iscsi_task *task, unsigned int offset, · line 2188

Quoted 9 lines
drivers/scsi/cxgbi/libcxgbi.c +1 -2
@@ -2182,8 +2182,7 @@ int cxgbi_conn_init_pdu(struct iscsi_task *task, unsigned int offset,
 	}
 
 	log_debug(1 << CXGBI_DBG_ISCSI | 1 << CXGBI_DBG_PDU_TX,
-		  "cxgbi_conn_init_pdu: tdata->total_count %u, "
-		  "tdata->total_offset %u\n",
+		  "data->total_count %u, tdata->total_offset %u\n",
 		  tdata->total_count, tdata->total_offset);
 
 	expected_count = tdata->total_count;