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: NSean Anderson <seanga2@gmail.com> Tested-by: NPatrick Delaunay <patrick.delaunay@st.com>
Showing
想要评论请 注册 或 登录