]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: migrate trace to dev and log macro in spi uclass
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 15 Oct 2020 15:18:17 +0000 (17:18 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 18 Dec 2020 10:46:36 +0000 (16:16 +0530)
commit46c5391b3d047fefbf6d852130299196061c7d6f
treec6c3a3fef40b0fb70dd5e661b4a5747854d54f2a
parent03a673cf49e8d2b1a3314f0f51390198e27b6d71
spi: migrate trace to dev and log macro in spi uclass

Define LOG_CATEGORY and change printf and pr_*
to dev_ (when dev is available) or log_ macro.

This patch adds the support of logging feature with log command
(filtering, display of device name in trace) and allows to
suppress traces via the syslog driver.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/spi-uclass.c