[FE training-materials-updates] kernel labs: fix spurious backslash

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Jul 16 10:04:12 CEST 2014


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=c0253c0db9f130c026b04d4176008e52cd158e82

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

commit c0253c0db9f130c026b04d4176008e52cd158e82
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Wed Jul 16 10:03:41 2014 +0200

    kernel labs: fix spurious backslash
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


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

c0253c0db9f130c026b04d4176008e52cd158e82
 labs/kernel-serial-output/kernel-serial-output.tex |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/labs/kernel-serial-output/kernel-serial-output.tex b/labs/kernel-serial-output/kernel-serial-output.tex
index 68451bd..15dce78 100644
--- a/labs/kernel-serial-output/kernel-serial-output.tex
+++ b/labs/kernel-serial-output/kernel-serial-output.tex
@@ -63,12 +63,11 @@ for each found device:
 \begin{itemize}
 \item To get an automatically assigned minor number.
 \item To specify a name for the device file in {\em devtmpfs}. We
-      propose to use
-      \code{kasprintf(GFP_KERNEL, "feserial-\%x", res->start)}.
-      \code{kasprintf()} allocates a buffer and runs \code{ksprintf()}
-      to fill its contents.
-      Don't forget to call \code{kfree()} on this buffer in
-      the \code{remove()} function!
+  propose to use {\tt kasprintf(GFP\_KERNEL,
+    "feserial-\%x", res->start)}. \code{kasprintf()} allocates a buffer
+    and runs \code{ksprintf()} to fill its contents.  Don't forget to
+    call \code{kfree()} on this buffer in the \code{remove()}
+    function!
 \item To pass the file operations structure that you defined.
 \end{itemize}
 



More information about the training-materials-updates mailing list