CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

debug_printf in TCPIP modules

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

View user's profile Send private message Send e-mail Visit poster's website

debug_printf in TCPIP modules
PostPosted: Fri Dec 05, 2008 2:14 am     Reply with quote

I am starting to work with the CCS TCPIP stack and found the following in several of the modules: (in this case udp.c)
Code:

#define debug_udp
//#define debug_udp debug_printf

This appears to have something to do with printing out debugging information, however, I cannot find the definition of the "debug_printf" macro anywhere, at least I assume it is a macro. If I uncomment the line I get errors. I looked a the original Microchip 3.75 stack code and could not find it there either.

Does anyone know how to make this work?

Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Dec 05, 2008 11:55 am     Reply with quote

If I do a text search on the whole CCS directory (using Examine32) for
debug_printf, in *.c *.h files, I get this:
Quote:

c:\Program Files\picc\tcp-ip\pic examples source\ex_st_email.c
#define debug_printf printf

c:\Program Files\picc\tcp-ip\pic examples source\ex_st_udp.c
#define debug_printf printf

c:\Program Files\picc\tcp-ip\pic examples source\ex_st_webserver2.c
#define debug_printf printf

The TCP/IP package comes from CCS. If you have current maintenance
in effect on the compiler, you can download it by pressing the TCP/IP
button in the lower right corner of this page:
http://www.ccsinfo.com/compilerupdates.php
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group