mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
dm: devres: Convert to use logging
At present when CONFIG_DEBUG_DEVRES is enabled, U-Boot prints log messages to the console with every devres allocation/free event. This causes most tests to fail since the console output is not as expected. In particular this prevents us from adding a device to sandbox which uses devres in its bind method. Move devres over to use U-Boot's logging feature instead, and add a new category for devres. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -49,6 +49,7 @@ enum log_category_t {
|
||||
LOGC_ALLOC, /* Memory allocation */
|
||||
LOGC_SANDBOX, /* Related to the sandbox board */
|
||||
LOGC_BLOBLIST, /* Bloblist */
|
||||
LOGC_DEVRES, /* Device resources (devres_... functions) */
|
||||
|
||||
LOGC_COUNT, /* Number of log categories */
|
||||
LOGC_END, /* Sentinel value for a list of log categories */
|
||||
|
Reference in New Issue
Block a user