Re: [PATCH v2] cxl: Use %pe to print error pointers
Alison Schofield <[email protected]> Mon, 3 Aug 2026 08:49:04 -0700
| Newsgroups | org.kernel.vger.linux-cxl,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Aug 02, 2026 at 04:50:29PM +0530, Shaikh Kamaluddin wrote: > Use the %pe printk format specifier to report error pointers directly > instead of printing PTR_ERR() as a long value. A failed dport addition > then reports -EBUSY rather than -16, which is easier to follow when > tracing port and region setup with dynamic debug enabled. > > Convert the five affected sites in drivers/cxl/core/port.c and > drivers/cxl/core/region.c. PTR_ERR() uses in return statements are > unaffected and left unchanged. > > drivers/cxl was scanned in full; these are the only conversion > candidates. > > Found by: make coccicheck MODE=report M=drivers/cxl/ > No functional change intended. > > Signed-off-by: Shaikh Kamaluddin <[email protected]> Reviewed-by: Alison Schofield <[email protected]>