2024-03-05 22:59:35

by Nícolas F. R. A. Prado

[permalink] [raw]
Subject: [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.

Signed-off-by: Nícolas F. R. A. Prado <[email protected]>
---
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,
--
Nícolas F. R. A. Prado <[email protected]>