From eae0a621556514d01f6b808302ed2cfe320c56be Mon Sep 17 00:00:00 2001 From: klueska Date: Mon, 20 Aug 2007 17:40:30 +0000 Subject: [PATCH] Added note about #including printf.h in all files taht make calls to printf. --- doc/html/tutorial/lesson15.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/html/tutorial/lesson15.html b/doc/html/tutorial/lesson15.html index 2aaa4de3..d315903f 100644 --- a/doc/html/tutorial/lesson15.html +++ b/doc/html/tutorial/lesson15.html @@ -9,8 +9,8 @@
Last updated August 19th, 2007

This lesson demonstrates how to use the printf library located in - tos/lib/printf to debug TinyOS applications by printing messages over the serial - port.

+ tos/lib/printf to debug TinyOS applications by printing messages over + the serial port.

Overview

@@ -342,6 +342,11 @@ event void PrintfFlush.flushDone(error_t error) { level application:

 CFLAGS += -I$(TOSDIR)/lib/printf
+
  • You MUST be sure to #include "printf.h" header file in + every component in which you would like to call the printf() + command. Failure + to do so will result in obscure error messages making it difficult to identify + the problem.
  • -- 2.39.2