Project

General

Profile

Revision 1547

Added by Brad Neuman over 14 years ago

found one bug and changed some debug prints

View differences:

dragonfly_defs.h
90 90
#define RELEASE_LOCK(LOCK) do { LOCK=0; } while (0)
91 91

  
92 92

  
93
#define __TO_STR_(s) #s
94
#define __TO_STR(s) __TO_STR_(s)
95

  
93 96
#ifdef DRAGONFLY_DEBUG
94
#define DRAGONFLY_DEBUG_PRINT(s) usb_puts(__FILE__ ":" __LINE__ ">>" s "\r\n")
97
#define DRAGONFLY_DEBUG_PRINT(s) usb_puts(__FILE__ ":" __TO_STR(__LINE__) ">" s )
95 98
#define DRAGONFLY_DEBUG_PRINT_STR(s) usb_puts(s)
96 99
#define DRAGONFLY_DEBUG_PRINT_INT(i) usb_puti(i)
97 100
#else

Also available in: Unified diff