Re: [PATCH] PCI: Use %pe format specifier to print error pointers
Krzysztof WilczyĆski <[email protected]> Sat, 1 Aug 2026 13:04:35 +0900
| Newsgroups | org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <20260801040411.GA3183355@rocinante> |
Hello, > Currently, several files in the PCI tree print error pointers using > the %ld format specifier together with an explicit PTR_ERR() > conversion, which prints the numeric errno value. > > Thus, at every affected call site, use the %pe format specifier, which > exists specifically to print error pointers, and pass the error pointer > directly. With CONFIG_SYMBOLIC_ERRNAME enabled, this prints a symbolic > error name such as -ENOMEM, falling back to the numeric errno value > otherwise. As such, the explicit PTR_ERR() conversion is no longer > needed. > > No functional changes intended. Applied to the misc branch. Thank you! Krzysztof