Skip to content

usb: Use %pe to print error pointers

Subasri S imx linux-arm-kernel linux-usb lkml netdev 3 versions – New

Get series with b4
b4 am [email protected] change-id 20260718-usb-ptr_err_patchset-7c5d1547bee7

Versions newest first

  1. v2 Latest posting 2/23 patches 0 repliesNew
  2. v2 posting 1/23 patches 5 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Remove "This patch" phrasing from the commit message body.
- Trim redundant Coccinelle warning outputs in the commit log to keep only one.
- Clean up multi-line dev_err() statements into single lines.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3usb: chipidea: Use %pe to print error pointersdrivers/usb/chipidea/ci_hdrc_imx.c drivers/usb/chipidea/core.c+8 -80 replies
2/3usb: misc: Use %pe to print error pointersdrivers/usb/atm/usbatm.c drivers/usb/core/hub.c drivers/usb/dwc2/pci.c +2 more+7 -100 replies
3/3usb: typec: Use %pe to print error pointersdrivers/usb/typec/mux/pi3usb30532.c drivers/usb/typec/tcpm/tcpm.c drivers/usb/typec/wusb3801.c+5 -70 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchFrank LiPeter ChenBadhri Jagan SridharanHeikki Krogerus
1/3R-b A-b
2/3R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH RESEND v2 0/3] usb: Use %pe to print error pointers

Replace PTR_ERR() in format strings with
%pe format specifier across the USB subsystem. %pe prints symbolic error names (e.g., -ENOMEM) instead of raw numbers (e.g., -12), making error logs more readable. These patches fix coccinelle reported warning: "Consider using %pe to print PTR_ERR()" in usb subsystem.

The patches are grouped by subsystem:
1/3 - chipidea
2/3 - miscellaneous USB drivers
3/3 - typec

All patches are compile-tested on x86_64. Please let me know if any more testing is needed for any patch.

---
Changes in v2:
- Remove "This patch" phrasing from the commit message body.
- Trim redundant Coccinelle warning outputs in the commit log to keep only one.
- Clean up multi-line dev_err() statements into single lines.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Subasri S (3):
usb: chipidea: Use %pe to print error pointers
usb: misc: Use %pe to print error pointers
usb: typec: Use %pe to print error pointers

 drivers/usb/atm/usbatm.c               |  4 ++--
 drivers/usb/chipidea/ci_hdrc_imx.c     | 12 ++++++------
 drivers/usb/chipidea/core.c            |  4 ++--
 drivers/usb/core/hub.c                 |  3 +--
 drivers/usb/dwc2/pci.c                 |  3 +--
 drivers/usb/gadget/function/u_serial.c |  4 ++--
 drivers/usb/misc/usb3503.c             |  3 +--
 drivers/usb/typec/mux/pi3usb30532.c    |  6 ++----
 drivers/usb/typec/tcpm/tcpm.c          |  2 +-
 drivers/usb/typec/wusb3801.c           |  4 ++--
 10 files changed, 20 insertions(+), 25 deletions(-)

---
base-commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa
change-id: 20260718-usb-ptr_err_patchset-7c5d1547bee7

Best regards,

Signature · 1 line
Subasri S <[email protected]>