]> git.baikalelectronics.ru Git - uboot.git/commit
dm: Print device name in dev_xxx like Linux
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:45:22 +0000 (10:45 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:54:07 +0000 (08:54 -0400)
commitb58877a3724f562f91cb72b90d79b55533d13b1e
treee50b2e3551ce9ac05713b1204e63faea793e94f7
parent9a22031fb7bb959a70b4934165a41bdcec45c95f
dm: Print device name in dev_xxx like Linux

This adorns messages generated by dev_xxx with the device and driver
names. It also redirects dev_xxx to log when it is available. The names
of these functions very roughly take inspiration from Linux, but there is
no deeper correlation.

Both struct udevice and struct device are supported when logging, though
logging with struct device is no better than using log_xxx. The latter is
supported because of the large amount of existing code which logs with
struct device.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
include/dm/device_compat.h