[PATCH 0/4] Avoid using perror

Stephen Hemminger stephen at networkplumber.org
Sun Dec 28 21:10:49 CET 2025


The DPDK uses its own logging library exclusively and drivers
and libraries should not be printing directly. One function that
was missed was perror() and some code was using it.

This series adds a checkpatch warning and fixes the
places that were using it.

Stephen Hemminger (4):
  checkpatches: warn if perror is used
  bus/dpaa: replace perror with log
  telemetry: replace perror with log
  common/dpaax: replace use of perror with log

 devtools/checkpatches.sh              | 2 +-
 drivers/bus/dpaa/base/qbman/process.c | 8 ++++----
 drivers/common/dpaax/dpaa_of.c        | 2 +-
 lib/telemetry/telemetry.c             | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

-- 
2.51.0



More information about the dev mailing list