Skip to content

Commit

Permalink
Convert more relatively frequent info-level printk calls to debug-lev…
Browse files Browse the repository at this point in the history
…el so they can be selectively enabled via dynamic debug

Signed-off-by: Alex Forencich <alex@alexforencich.com>
  • Loading branch information
alexforencich committed Jul 7, 2023
1 parent 1d72981 commit 4cad75e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modules/mqnic/mqnic_ptp.c
Expand Up @@ -33,7 +33,7 @@ static int mqnic_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
bool neg = false;
u64 nom_per_fns, adj;

dev_info(mdev->dev, "%s: scaled_ppm: %ld", __func__, scaled_ppm);
dev_dbg(mdev->dev, "%s: scaled_ppm: %ld", __func__, scaled_ppm);

if (scaled_ppm < 0) {
neg = true;
Expand All @@ -56,7 +56,7 @@ static int mqnic_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
iowrite32(adj & 0xffffffff, mdev->phc_rb->regs + MQNIC_RB_PHC_REG_PERIOD_FNS);
iowrite32(adj >> 32, mdev->phc_rb->regs + MQNIC_RB_PHC_REG_PERIOD_NS);

dev_info(mdev->dev, "%s adj: 0x%llx", __func__, adj);
dev_dbg(mdev->dev, "%s adj: 0x%llx", __func__, adj);

return 0;
}
Expand Down Expand Up @@ -107,7 +107,7 @@ static int mqnic_phc_adjtime(struct ptp_clock_info *ptp, s64 delta)
struct mqnic_dev *mdev = container_of(ptp, struct mqnic_dev, ptp_clock_info);
struct timespec64 ts;

dev_info(mdev->dev, "%s: delta: %lld", __func__, delta);
dev_dbg(mdev->dev, "%s: delta: %lld", __func__, delta);

if (delta > 1000000000 || delta < -1000000000) {
mqnic_phc_gettime(ptp, &ts);
Expand Down
4 changes: 2 additions & 2 deletions modules/mqnic/mqnic_tx.c
Expand Up @@ -258,7 +258,7 @@ int mqnic_process_tx_cq(struct mqnic_cq *cq, int napi_budget)

// TX hardware timestamp
if (unlikely(tx_info->ts_requested)) {
netdev_info(priv->ndev, "%s: TX TS requested", __func__);
netdev_dbg(priv->ndev, "%s: TX TS requested", __func__);
hwts.hwtstamp = mqnic_read_cpl_ts(interface->mdev, tx_ring, cpl);
skb_tstamp_tx(tx_info->skb, &hwts);
}
Expand Down Expand Up @@ -435,7 +435,7 @@ netdev_tx_t mqnic_start_xmit(struct sk_buff *skb, struct net_device *ndev)
// TX hardware timestamp
tx_info->ts_requested = 0;
if (unlikely(priv->if_features & MQNIC_IF_FEATURE_PTP_TS && shinfo->tx_flags & SKBTX_HW_TSTAMP)) {
netdev_info(ndev, "%s: TX TS requested", __func__);
netdev_dbg(ndev, "%s: TX TS requested", __func__);
shinfo->tx_flags |= SKBTX_IN_PROGRESS;
tx_info->ts_requested = 1;
}
Expand Down

0 comments on commit 4cad75e

Please sign in to comment.