From: klueska
Date: Mon, 20 Aug 2007 17:40:30 +0000 (+0000)
Subject: Added note about #including printf.h in all files taht make calls to printf.
X-Git-Tag: release_tinyos_2_1_0_0~789
X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=eae0a621556514d01f6b808302ed2cfe320c56be;hp=a8381812baf485c1f2d8bcc066e018988e97827e;p=tinyos-2.x.git
Added note about #including printf.h in all files taht make calls to printf.
---
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.