Skip to contentSkip to conversation

doc: dm: debugging: Fix the steps for activating debug

PATCH New Fabio Estevam 3 participants 3 messages Jan 29, 2020 – Feb 5, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: dm: debugging: Fix the steps for activating debug

Following the recommendation of adding '#define DEBUG' at the top of drivers/core/lists.c does not cause the debug messages to be shown. Change it to '#define LOG_DEBUG' instead, which actually makes it work as per doc/README.log.

While at it, provide the full path to lists.c to in order to make the instructions clearer.

---
 doc/driver-model/debugging.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
doc/driver-model/debugging.rst +2 -2
index 4f4a8d4805..c59bf6763b 100644
@@ -58,5 +58,5 @@ If you are using of-platdata (e.g. CONFIG_SPL_OF_PLATDATA), check that the
 driver name is the same as the first compatible string in the device tree (with
 invalid-variable characters converted to underscore).
 
-If you are really stuck, #define DEBUG at the top of lists.c should show you
-what is going on.
+If you are really stuck, putting '#define LOG_DEBUG' at the top of
+drivers/core/lists.c should show you what is going on.
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 doc: dm: debugging: Fix the steps for activating debug

Quoted 6 lines · Fabio Estevam

Following the recommendation of adding '#define DEBUG' at the top of drivers/core/lists.c does not cause the debug messages to be shown. Change it to '#define LOG_DEBUG' instead, which actually makes it work as per doc/README.log.

Quoted 8 lines

While at it, provide the full path to lists.c to in order to make the instructions clearer.

---
 doc/driver-model/debugging.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
#2 lore raw

PATCH 1/1 doc: dm: debugging: Fix the steps for activating debug

Quoted 6 lines · Fabio Estevam

Following the recommendation of adding '#define DEBUG' at the top of drivers/core/lists.c does not cause the debug messages to be shown. Change it to '#define LOG_DEBUG' instead, which actually makes it work as per doc/README.log.

Quoted 8 lines

While at it, provide the full path to lists.c to in order to make the instructions clearer.

---
 doc/driver-model/debugging.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to u-boot-dm, thanks!