2007-09-12 Daniel Hellstrom <daniel@gaisler.com>

* shared/can/grcan.c, shared/include/debug_defs.h, shared/spw/grspw.c:
	Remove use of DEBUG_printf.
This commit is contained in:
Joel Sherrill
2007-09-12 15:38:57 +00:00
parent 3d7fa72bc2
commit 7459fbf9f5
4 changed files with 5 additions and 26 deletions

View File

@@ -1,3 +1,8 @@
2007-09-12 Daniel Hellstrom <daniel@gaisler.com>
* shared/can/grcan.c, shared/include/debug_defs.h, shared/spw/grspw.c:
Remove use of DEBUG_printf.
2007-09-07 Daniel Hellstrom <daniel@gaisler.com> 2007-09-07 Daniel Hellstrom <daniel@gaisler.com>
* shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/grcan_rasta.c, * shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/grcan_rasta.c,

View File

@@ -103,29 +103,6 @@
#include <debug_defs.h> #include <debug_defs.h>
/*
#ifdef DEBUG
#include <debug_defs.h>
#else
void silentdbg_init(void);
void silentdbg_printf(char *fmt, ...);
void silentdbg_int_printf(char *fmt, ...);
void silentdbg_get_buf(char *buf, int max);
int silentdbg_print_buf(int max);
extern int DEBUG_printf(const char *fmt, ...);
#define DBG(fmt, args...) do { silentdbg_printf(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); } while(0)
#define DBG2(fmt) do { silentdbg_printf(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__); } while(0)
#define DBGC(c,fmt, args...) do { if (DEBUG_FLAGS & c) { silentdbg_printf(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); }} while(0)
#ifdef DEBUGFUNCS
#define FUNCDBG() do { silentdbg_printf("%s\n\r",__FUNCTION__); } while(0)
#define FUNCDBG_INT()
#else
#define FUNCDBG()
#define FUNCDBG_INT() do { silentdbg_int_printf("%s\n\r",__FUNCTION__); } while(0)
#endif
#endif
*/
/*********************************************************/ /*********************************************************/
/* grcan needs to have it buffers aligned to 1k boundaries */ /* grcan needs to have it buffers aligned to 1k boundaries */

View File

@@ -13,7 +13,6 @@ extern "C" {
#define DEBUG_FLAGS 0 #define DEBUG_FLAGS 0
#endif #endif
extern int DEBUG_printf(const char *fmt, ...);
#define DBG(fmt, args...) do { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); } while(0) #define DBG(fmt, args...) do { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); } while(0)
#define DBG2(fmt) do { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__); } while(0) #define DBG2(fmt) do { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__); } while(0)
#define DBGC(c,fmt, args...) do { if (DEBUG_FLAGS & c) { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); }} while(0) #define DBGC(c,fmt, args...) do { if (DEBUG_FLAGS & c) { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); }} while(0)
@@ -28,7 +27,6 @@ extern "C" {
#ifdef DEBUGFUNCS #ifdef DEBUGFUNCS
#define FUNCDBG() do { printk("%s\n\r",__FUNCTION__); } while(0) #define FUNCDBG() do { printk("%s\n\r",__FUNCTION__); } while(0)
extern int DEBUG_printf(const char *fmt, ...);
#else #else
#define FUNCDBG() #define FUNCDBG()
#endif #endif

View File

@@ -93,7 +93,6 @@
/* #define DEBUG_SPACEWIRE_ONOFF */ /* #define DEBUG_SPACEWIRE_ONOFF */
#ifdef DEBUG_SPACEWIRE_ONOFF #ifdef DEBUG_SPACEWIRE_ONOFF
int DEBUG_printf(const char *fmt, ...);
#define SPACEWIRE_DBG(fmt, args...) do { { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); }} while(0) #define SPACEWIRE_DBG(fmt, args...) do { { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); }} while(0)
#define SPACEWIRE_DBG2(fmt) do { { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__); }} while(0) #define SPACEWIRE_DBG2(fmt) do { { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__); }} while(0)
#define SPACEWIRE_DBGC(c,fmt, args...) do { if (DEBUG_SPACEWIRE_FLAGS & c) { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); }} while(0) #define SPACEWIRE_DBGC(c,fmt, args...) do { if (DEBUG_SPACEWIRE_FLAGS & c) { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); }} while(0)