Skip to contentSkip to conversation

bnx2fc: replace printk() with BNX2FC_IO_DBG()

PATCH Applied Maurizio Lombardi 4 participants 4 messages May 30, 2016 – Jun 1, 2016

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

PATCH 1/1 bnx2fc: replace printk() with BNX2FC_IO_DBG()

The "fcp_rsp_code = %d" message isn't an error, it's meant to be informative only.
This patch prevents a flood of such messages in some situations.

---
 drivers/scsi/bnx2fc/bnx2fc_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/bnx2fc/bnx2fc_io.c +1 -1
index 026f394..8f24d60 100644
@@ -1758,7 +1758,7 @@ static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req,
 		if ((fcp_rsp_len == 4) || (fcp_rsp_len == 8)) {
 			/* Only for task management function */
 			io_req->fcp_rsp_code = rq_data[3];
-			printk(KERN_ERR PFX "fcp_rsp_code = %d\n",
+			BNX2FC_IO_DBG(io_req, "fcp_rsp_code = %d\n",
 				io_req->fcp_rsp_code);
 		}
 
Signature · 1 line
Maurizio Lombardi
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Maurizio Lombardi

The "fcp_rsp_code = %d" message isn't an error, it's meant to be informative only.
This patch prevents a flood of such messages in some situations.

Signature · 10 lines
Johannes Thumshirn                                          Storage
[email protected]                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by on v1 1/1
#2 lore raw
In reply to Maurizio Lombardi
Quoted 27 lines

The "fcp_rsp_code = %d" message isn't an error, it's meant to be informative only.
This patch prevents a flood of such messages in some situations.

---
drivers/scsi/bnx2fc/bnx2fc_io.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/bnx2fc/bnx2fc_io.c +1 -1
index 026f394..8f24d60 100644
@@ -1758,7 +1758,7 @@ static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd
 *io_req,
 		if ((fcp_rsp_len == 4) || (fcp_rsp_len == 8)) {
 			/* Only for task management function */
 			io_req->fcp_rsp_code = rq_data[3];
-			printk(KERN_ERR PFX "fcp_rsp_code = %d\n",
+			BNX2FC_IO_DBG(io_req, "fcp_rsp_code = %d\n",
 				io_req->fcp_rsp_code);
 		}
Signature · 2 lines
-- 
Maurizio Lombardi

Make sense to move this to a debug level.

#3 lore raw
In reply to Maurizio Lombardi
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Maurizio" == Maurizio Lombardi <[email protected]> writes:

Maurizio> The "fcp_rsp_code = %d" message isn't an error, it's meant to Maurizio> be informative only. This patch prevents a flood of such Maurizio> messages in some situations.

Applied to 4.8/scsi-queue.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering