bnx2fc: replace printk() with BNX2FC_IO_DBG()
Subsystems (2)
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
@@ -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
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.Tested-by Laurence Oberman <[email protected]>Signed-off-by Maurizio Lombardi <[email protected]>
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
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.Tested-by Laurence Oberman <[email protected]>Signed-off-by Maurizio Lombardi <[email protected]>---
drivers/scsi/bnx2fc/bnx2fc_io.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/bnx2fc/bnx2fc_io.c +1
-1@@ -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.
Martin K. Petersen
AppliedQuoted 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