Skip to content

device: core: Adjust device probe log messages to ease error detection

Nícolas F. R. A. Prado lkml 1 version New

Get series with b4
b4 am [email protected] change-id 20240305-device-probe-error-ec99e7bdd2d3

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3driver: core: Log probe failure as error and with device metadatadrivers/base/dd.c+2 -20 replies
2/3driver: core: Use dev_* instead of pr_* so device metadata is addeddrivers/base/dd.c+12 -140 replies
3/3device: core: Log warning for devices pending deferred probe on timeoutdrivers/base/dd.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] device: core: Adjust device probe log messages to ease error detection

This series adjusts log message's log levels and helper functions to make it easier to detect issues with the probe of devices.

This is the rationale:

- The dev_* printk variants should be used to log information related to the probe of a device so that the messages get the device's metadata attached and can easily be correlated to it.
- Issues in the probe of a device should be logged at the error level. If it is likely that an issue has ocurred, but not guaranteed, log at the warning level.

---
Nícolas F. R. A. Prado (3):
driver: core: Log probe failure as error and with device metadata
driver: core: Use dev_* instead of pr_* so device metadata is added
device: core: Log warning for devices pending deferred probe on timeout

 drivers/base/dd.c | 32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

---
base-commit: 11afac187274a6177a7ac82997f8691c0f469e41
change-id: 20240305-device-probe-error-ec99e7bdd2d3

Best regards,

Signature · 1 line
Nícolas F. R. A. Prado <[email protected]>