mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] device: core: Adjust device probe log messages to ease error detection
@ 2024-03-05 22:21 Nícolas F. R. A. Prado
  2024-03-05 22:21 ` [PATCH 1/3] driver: core: Log probe failure as error and with device metadata Nícolas F. R. A. Prado
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-03-05 22:21 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rafael J. Wysocki
  Cc: kernel, linux-kernel, Nícolas F. R. A. Prado

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 <nfraprado@collabora.com>
---
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 <nfraprado@collabora.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-05 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-05 22:21 [PATCH 0/3] device: core: Adjust device probe log messages to ease error detection Nícolas F. R. A. Prado
2024-03-05 22:21 ` [PATCH 1/3] driver: core: Log probe failure as error and with device metadata Nícolas F. R. A. Prado
2024-03-05 22:21 ` [PATCH 2/3] driver: core: Use dev_* instead of pr_* so device metadata is added Nícolas F. R. A. Prado
2024-03-05 22:21 ` [PATCH 3/3] device: core: Log warning for devices pending deferred probe on timeout Nícolas F. R. A. Prado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®