Claude review: staging: fbtft: Use %pe format specifier for error pointers

Claude Code Review Bot
2026-04-13T09:00:42Z

Patch Review

**fb_ssd1351.c change:**
```c
- "cannot register backlight device (%ld)\n",
- PTR_ERR(bd));
+ "cannot register backlight device (%pe)\n", bd);
```

**fbtft-core.c change:**
```c
- "cannot register backlight device (%ld)\n",
- PTR_ERR(bd));
+ "cannot register backlight device (%pe)\n", bd);
```

Both hunks are correct. In each case `bd` has just been confirmed to be an error pointer via `IS_ERR(bd)`, so passing it directly with `%pe` is safe and will print the symbolic error name (e.g. `-ENOMEM`) instead of a raw number.

**Minor observations (not blocking):**

- The commit message is clear and well-structured. The "Testing" note about compile-only testing is appreciated and appropriate for a printf-format-only change in staging.
- The `Fixes:` tag is absent, which is fine — this is a cosmetic cleanup, not a bug fix, so no `Fixes:` tag is needed. However, the commit message says "Fixes the following coccinelle warnings" which could be slightly misleading since `Fixes:` has a specific meaning in the kernel. Consider rephrasing to "Addresses the following coccinelle warnings" or "Resolves the following coccinelle warning" to avoid any ambiguity, though this is a very minor nit.

**Reviewed-by worthy:** Yes. The patch is trivially correct.

---
Generated by Claude Code Patch Reviewer