[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240305-device-probe-error-v1-0-a06d8722bf19@collabora.com>
Date: Tue, 05 Mar 2024 17:21:35 -0500
From: Nícolas F. R. A. Prado <nfraprado@...labora.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>
Cc: kernel@...labora.com, linux-kernel@...r.kernel.org,
Nícolas F. R. A. Prado <nfraprado@...labora.com>
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 <nfraprado@...labora.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@...labora.com>
Powered by blists - more mailing lists