[Tinyos-help] turning ON debug statements

2007-12-13 Thread Vijayant Bhatnagar
Hi,
can anyone please tell me how to turn ON debug statements of system files ?
I am able to track debug statements from my application but not from source
files. Basically i wish to track statements like :

dbg("CpmModelC,SNRLoss", " - lost packet from %i as SNR was too low.\n",
(int)mine->source);

Any help is greatly appreciated.

thanks,
vijayant
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] turning ON debug statements

2007-12-13 Thread Thanh Phuong Nguyen
Hi Vijayant, 

I am not sure if i understand ur quest right. Now for
ur quest, i just add a line in the python script:
=
t.addChannel("CpmModelC,SNRLoss", sys.stdout)
# t = Tossim([])
=
If u already had that in ur script, so maybe somehow
ur program hasnt reach to the debug line. 

Hope this helps, 

Phuong.

ps: for the makefile prob, a friend of mine told me
that we should change 
"BUILD_EXTRA_DEPS = RadioCountData.py
RadioCountData.class" to "BUILD_EXTRA_DEPS + =
RadioCountData.py
 RadioCountData.class", add one more "+" to the
makefile inorder not to overwrite the previous
BUILD_EXTRA_DEPS ...



--- Vijayant Bhatnagar <[EMAIL PROTECTED]>
wrote:

> Hi,
> can anyone please tell me how to turn ON debug
> statements of system files ?
> I am able to track debug statements from my
> application but not from source
> files. Basically i wish to track statements like :
> 
> dbg("CpmModelC,SNRLoss", " - lost packet from %i as
> SNR was too low.\n",
> (int)mine->source);
> 
> Any help is greatly appreciated.
> 
> thanks,
> vijayant
> > ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help