title: Print messages in kernel module using c++
body: <p>I am editing a kernel module written in C++. I want a function to print a message but i guess i can not use <code>cout</code> or any Standard Input/Output Streams library function because the module resides in kernel space.</p>
  
  <p>I have tried to include the <code>iostream</code> library:</p>
  
  <pre><code>....
  #include &lt;iostream&gt;
  ....
  </code></pre>
  
  <p>When i compile with <code>g++</code> i get:</p>
  
  <pre><code> error: iostream: No such file or directory
   error: 'cout' was not declared in this scope
  </code></pre>