qed: Reduce the severity of ptp debug message.
authorSudarsana Reddy Kalluru <skalluru@marvell.com>
Tue, 28 May 2019 03:21:32 +0000 (20:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 07:01:30 +0000 (00:01 -0700)
PTP Tx implementation continuously polls for the availability of timestamp.
Reducing the severity of a debug message in this path to avoid filling up
the syslog buffer with this message, especially in the error scenarios.

Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_ptp.c

index 1302b308bd87de6531d1adeb040cade0a19366f6..f3ebdc5e8f85a959c9366ae4c5e04a15d0259100 100644 (file)
@@ -157,7 +157,8 @@ static int qed_ptp_hw_read_tx_ts(struct qed_dev *cdev, u64 *timestamp)
        *timestamp = 0;
        val = qed_rd(p_hwfn, p_ptt, NIG_REG_TX_LLH_PTP_BUF_SEQID);
        if (!(val & QED_TIMESTAMP_MASK)) {
-               DP_INFO(p_hwfn, "Invalid Tx timestamp, buf_seqid = %d\n", val);
+               DP_VERBOSE(p_hwfn, QED_MSG_DEBUG,
+                          "Invalid Tx timestamp, buf_seqid = %08x\n", val);
                return -EINVAL;
        }