From: Maurizio Lombardi Date: Mon, 30 May 2016 08:41:01 +0000 (+0200) Subject: bnx2fc: replace printk() with BNX2FC_IO_DBG() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a30a3c7e67567075aabe135136423b3c7d19042;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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. Signed-off-by: Maurizio Lombardi Tested-by: Laurence Oberman Reviewed-by: Johannes Thumshirn Acked-by: Chad Dupuis Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c index 026f394a3851..8f24d60f09d7 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_io.c +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c @@ -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); }