Skip to content

Commit

Permalink
net/nfp: reformat period of logs
Browse files Browse the repository at this point in the history
Unified add period at the end of the sentence in log.

Signed-off-by: Zerun Fu <zerun.fu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
  • Loading branch information
zerun-fu authored and ferruhy committed Oct 19, 2024
1 parent e3f1e30 commit 60ff39f
Show file tree
Hide file tree
Showing 39 changed files with 630 additions and 630 deletions.
12 changes: 6 additions & 6 deletions drivers/common/nfp/nfp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ nfp_reconfig_real(struct nfp_hw *hw,
hw->qcp_cfg);

if (hw->qcp_cfg == NULL) {
PMD_DRV_LOG(ERR, "Bad configuration queue pointer");
PMD_DRV_LOG(ERR, "Bad configuration queue pointer.");
return -ENXIO;
}

Expand All @@ -43,20 +43,20 @@ nfp_reconfig_real(struct nfp_hw *hw,
break;

if ((new & NFP_NET_CFG_UPDATE_ERR) != 0) {
PMD_DRV_LOG(ERR, "Reconfig error: %#08x", new);
PMD_DRV_LOG(ERR, "Reconfig error: %#08x.", new);
return -1;
}

if (cnt >= NFP_NET_POLL_TIMEOUT) {
PMD_DRV_LOG(ERR, "Reconfig timeout for %#08x after %u ms",
PMD_DRV_LOG(ERR, "Reconfig timeout for %#08x after %u ms.",
update, cnt);
return -EIO;
}

nanosleep(&wait, 0); /* waiting for a 1ms */
}

PMD_DRV_LOG(DEBUG, "Ack DONE");
PMD_DRV_LOG(DEBUG, "Ack DONE.");
return 0;
}

Expand Down Expand Up @@ -96,7 +96,7 @@ nfp_reconfig(struct nfp_hw *hw,
rte_spinlock_unlock(&hw->reconfig_lock);

if (ret != 0) {
PMD_DRV_LOG(ERR, "Error NFP reconfig: ctrl=%#08x update=%#08x",
PMD_DRV_LOG(ERR, "Error NFP reconfig: ctrl=%#08x update=%#08x.",
ctrl, update);
return -EIO;
}
Expand Down Expand Up @@ -140,7 +140,7 @@ nfp_ext_reconfig(struct nfp_hw *hw,
rte_spinlock_unlock(&hw->reconfig_lock);

if (ret != 0) {
PMD_DRV_LOG(ERR, "Error NFP ext reconfig: ctrl_ext=%#08x update=%#08x",
PMD_DRV_LOG(ERR, "Error NFP ext reconfig: ctrl_ext=%#08x update=%#08x.",
ctrl_ext, update);
return -EIO;
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/common/nfp/nfp_common_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ nfp_drivers_probe(struct rte_pci_device *pci_dev,

ret = driver->probe(pci_dev);
if (ret < 0) {
PMD_DRV_LOG(ERR, "Failed to load driver %s", driver->name);
PMD_DRV_LOG(ERR, "Failed to load driver %s.", driver->name);
return ret;
}
}
Expand All @@ -210,7 +210,7 @@ nfp_common_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,

class = nfp_parse_class_options(eal_dev->devargs);
if (class == NFP_CLASS_INVALID) {
PMD_DRV_LOG(ERR, "Unsupported nfp class type: %s",
PMD_DRV_LOG(ERR, "Unsupported nfp class type: %s.",
eal_dev->devargs->args);
return -ENOTSUP;
}
Expand Down
Loading

0 comments on commit 60ff39f

Please sign in to comment.