]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Added note about #including printf.h in all files taht make calls to printf.
authorklueska <klueska>
Mon, 20 Aug 2007 17:40:30 +0000 (17:40 +0000)
committerklueska <klueska>
Mon, 20 Aug 2007 17:40:30 +0000 (17:40 +0000)
doc/html/tutorial/lesson15.html

index 2aaa4de370ec011c6c18451dc1241f11f84472a5..d315903fe963d0ad306110385495c4e849253db7 100644 (file)
@@ -9,8 +9,8 @@
     <div class="subtitle">Last updated August 19th, 2007</div>
     
     <p>This lesson demonstrates how to use the <code>printf</code> library located in 
-    tos/lib/printf to debug TinyOS applications by printing messages over the serial 
-    port.</p>
+    <code>tos/lib/printf</code> to debug TinyOS applications by printing messages over
+    the serial port.</p>
     
     <h1>Overview</h1>
     <p> 
@@ -342,6 +342,11 @@ event void PrintfFlush.flushDone(error_t error) {
           level application:
           <pre>
 CFLAGS += -I$(TOSDIR)/lib/printf</pre></li>
+      <li>You MUST be sure to #include <code>"printf.h"</code> header file in
+          every component in which you would like to call the <code>printf()</code>
+          command.  Failure
+          to do so will result in obscure error messages making it difficult to identify
+          the problem.</li>
     </ol>
 
 <p>