scsi: qedf: Move some prints to a debug level so they do not print when no debugging...
authorChad Dupuis <chad.dupuis@cavium.com>
Wed, 31 May 2017 13:33:59 +0000 (06:33 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:06 +0000 (20:48 -0400)
Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c

index b7d17e177cf0851ae8ef8b8bfba717f7a3d7e030..4135354acea83a1cb2194d4972df192ce2bb95ac 100644 (file)
@@ -442,7 +442,8 @@ static void qedf_link_update(void *dev, struct qed_link_output *link)
                qedf_update_link_speed(qedf, link);
 
                if (atomic_read(&qedf->dcbx) == QEDF_DCBX_DONE) {
-                       QEDF_ERR(&(qedf->dbg_ctx), "DCBx done.\n");
+                       QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC,
+                            "DCBx done.\n");
                        if (atomic_read(&qedf->link_down_tmo_valid) > 0)
                                queue_delayed_work(qedf->link_update_wq,
                                    &qedf->link_recovery, 0);
@@ -2155,14 +2156,15 @@ static void qedf_recv_frame(struct qedf_ctx *qedf,
        }
 
        if (ntoh24(&dest_mac[3]) != ntoh24(fh->fh_d_id)) {
-               QEDF_ERR(&(qedf->dbg_ctx), "FC frame d_id mismatch with MAC %pM.\n",
-                   dest_mac);
+               QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_LL2,
+                   "FC frame d_id mismatch with MAC %pM.\n", dest_mac);
                return;
        }
 
        if (qedf->ctlr.state) {
                if (!ether_addr_equal(mac, qedf->ctlr.dest_addr)) {
-                       QEDF_ERR(&(qedf->dbg_ctx), "Wrong source address mac:%pM dest_addr:%pM.\n",
+                       QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_LL2,
+                           "Wrong source address: mac:%pM dest_addr:%pM.\n",
                            mac, qedf->ctlr.dest_addr);
                        kfree_skb(skb);
                        return;
@@ -2177,7 +2179,8 @@ static void qedf_recv_frame(struct qedf_ctx *qedf,
         * empty then this is not addressed to our port so simply drop it.
         */
        if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) {
-               QEDF_ERR(&(qedf->dbg_ctx), "Dropping frame due to destination mismatch: lport->port_id=%x fh->d_id=%x.\n",
+               QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_LL2,
+                   "Dropping frame due to destination mismatch: lport->port_id=%x fh->d_id=%x.\n",
                    lport->port_id, ntoh24(fh->fh_d_id));
                kfree_skb(skb);
                return;