bnx2fc: replace printk() with BNX2FC_IO_DBG()
authorMaurizio Lombardi <mlombard@redhat.com>
Mon, 30 May 2016 08:41:01 +0000 (10:41 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 13 Jul 2016 03:16:31 +0000 (23:16 -0400)
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.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_io.c

index 026f394a38518f29f5bd9ffdd42ac24dc3b594cd..8f24d60f09d72717a6853d4a7882fceae412a117 100644 (file)
@@ -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);
                }