printk.
[cascardo/kernel/old_slides/.git] / 01.hello / 01.hello.xml
index 7306db5..5f424e6 100644 (file)
@@ -34,16 +34,6 @@ We have prepared sample code to build in the samples/ directory. Try them.
 </para>
 </foil>
 
-<foil>
-<title>Building</title>
-<para>
-Building an out-of-tree linux module is very simple:
-</para>
-<screen>
-$ make -C /lib/modules/`uname -r`/build M=$PWD modules
-</screen>
-</foil>
-
 <foil>
 <title>Init and Exit Functions</title>
 <para>
@@ -60,6 +50,26 @@ kernel to remove them when they are not needed, reducing memory consumption.
 </para>
 </foil>
 
+<foil>
+<title>printk</title>
+<para>
+<emphasis>printk</emphasis> is very similar to printf. The messages are usually
+preceded by a string in the form &lt;n&gt;, where <emphasis>n</emphasis> is a
+priority. There are macros, like <emphasis>KERN\_ALERT</emphasis> and
+<emphasis>KERN\_DEBUG</emphasis> to use for that.
+</para>
+</foil>
+
+<foil>
+<title>Building</title>
+<para>
+Building an out-of-tree linux module is very simple:
+</para>
+<screen>
+$ make -C /lib/modules/`uname -r`/build M=$PWD modules
+</screen>
+</foil>
+
 <foil>
 <title>Module Tools</title>
 <itemizedlist>