|
|
@@ -76,10 +76,10 @@ static void disabledbg(void) |
|
|
|
close(DEBUG_FD); |
|
|
|
} |
|
|
|
|
|
|
|
#define DPRINTF_D(x) xprintf(DEBUG_FD, #x "=%d\n", x) |
|
|
|
#define DPRINTF_U(x) xprintf(DEBUG_FD, #x "=%u\n", x) |
|
|
|
#define DPRINTF_S(x) xprintf(DEBUG_FD, #x "=%s\n", x) |
|
|
|
#define DPRINTF_P(x) xprintf(DEBUG_FD, #x "=%p\n", x) |
|
|
|
#define DPRINTF_D(x) xprintf(DEBUG_FD, #x "=%d [ln %d]\n", x, __LINE__) |
|
|
|
#define DPRINTF_U(x) xprintf(DEBUG_FD, #x "=%u [ln %d]\n", x, __LINE__) |
|
|
|
#define DPRINTF_S(x) xprintf(DEBUG_FD, #x "=%s [ln %d]\n", x, __LINE__) |
|
|
|
#define DPRINTF_P(x) xprintf(DEBUG_FD, #x "=%p [ln %d]\n", x, __LINE__) |
|
|
|
#else |
|
|
|
#define DPRINTF_D(x) |
|
|
|
#define DPRINTF_U(x) |
|
|
|