[bootlin/training-materials updates] master: labs/kernel-debugging: use dev_dbg instead of pr_debug (0db4c878)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Jun 4 08:19:55 CEST 2020


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/0db4c8787180a7e44eae028bcaf591a52c1dd59e

>---------------------------------------------------------------

commit 0db4c8787180a7e44eae028bcaf591a52c1dd59e
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Thu Jun 4 08:19:55 2020 +0200

    labs/kernel-debugging: use dev_dbg instead of pr_debug
    
    We are inside a device driver, we have a "struct device", so using
    dev_dbg() is recommended.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


>---------------------------------------------------------------

0db4c8787180a7e44eae028bcaf591a52c1dd59e
 labs/kernel-debugging/kernel-debugging.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/labs/kernel-debugging/kernel-debugging.tex b/labs/kernel-debugging/kernel-debugging.tex
index cf6e3217..7e4f7773 100644
--- a/labs/kernel-debugging/kernel-debugging.tex
+++ b/labs/kernel-debugging/kernel-debugging.tex
@@ -4,11 +4,11 @@
 
 In this lab, we will continue to work on the code of our serial driver.
 
-\section{pr\_debug() and dynamic debugging}
+\section{dev\_dbg() and dynamic debugging}
 
-Add a \kfunc{pr_debug} call in the \code{write()} operation that shows
+Add a \kfunc{dev_dbg} call in the \code{write()} operation that shows
 each character being written (or its hexadecimal representation) and
-add a similar \kfunc{pr_debug} call in your interrupt handler to show
+add a similar \kfunc{dev_dbg} call in your interrupt handler to show
 each character being received.
 
 Check what happens with your module. Do you see the debugging messages




More information about the training-materials-updates mailing list