]> git.dujemihanovic.xyz Git - u-boot.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)
commitceb70bb870ac0761992d3e38e9287a338e3b846a
treee50b2e3551ce9ac05713b1204e63faea793e94f7
parent4d14600bf6b80676278594890e50222d5ad3e7ba
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