]> git.baikalelectronics.ru Git - uboot.git/commit
dm: devres: Convert to use logging
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:24 +0000 (21:19 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:02:38 +0000 (16:02 -0700)
commit518613d759050aefc7033473f8912debda60351f
tree051bc9733c6aee6281d62e3e2fecd3211ec52c13
parent50d00da16bd865b7de0b3ecad7060a5695395f40
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>
drivers/core/devres.c
include/log.h