forked from Imagelibrary/rtems
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:
@@ -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>
|
||||
|
||||
* shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/grcan_rasta.c,
|
||||
|
||||
@@ -103,29 +103,6 @@
|
||||
|
||||
#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 */
|
||||
|
||||
@@ -13,7 +13,6 @@ extern "C" {
|
||||
#define DEBUG_FLAGS 0
|
||||
#endif
|
||||
|
||||
extern int DEBUG_printf(const char *fmt, ...);
|
||||
#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 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
|
||||
#define FUNCDBG() do { printk("%s\n\r",__FUNCTION__); } while(0)
|
||||
extern int DEBUG_printf(const char *fmt, ...);
|
||||
#else
|
||||
#define FUNCDBG()
|
||||
#endif
|
||||
|
||||
@@ -93,7 +93,6 @@
|
||||
/* #define 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_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)
|
||||
|
||||
Reference in New Issue
Block a user