diff options
| author | Sumeet Pawnikar <sumeet4linux@gmail.com> | 2026-08-29 19:19:24 +0530 |
|---|---|---|
| committer | Viresh Kumar <viresh.kumar@linaro.org> | 2026-08-31 11:38:47 +0530 |
| commit | a5096d4927d1eb607d51a7342a7e7591a3838c19 (patch) | |
| tree | 38db5f42544e90ef5bbcf98dd7c7158357db9d6e /scripts/basic/split-include.c | |
| parent | e11811a552252740bd396ec38378e9570ee16578 (diff) | |
| download | linux-a5096d4927d1eb607d51a7342a7e7591a3838c19.tar.gz linux-a5096d4927d1eb607d51a7342a7e7591a3838c19.zip | |
opp: Use %pe to print symbolic error name
Replace PTR_ERR() and %ld with %pe and pass the original pointer directly
to dev_dbg(), dev_warn(), dev_err() or pr_err(). The %pe format specifier
prints a symbolic error name (e.g. -ENOMEM) when CONFIG_SYMBOLIC_ERRNAME
is enabled, otherwise it falls back gracefully and prints the raw integer
value. This makes error messages more readable without any functional
change.
Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
