mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-01 12:03:38 +00:00
[client] adjusted debug output to be more informative
This commit is contained in:
parent
f0affdc704
commit
aaa18e595e
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define DEBUG_PRINT(type, fmt, args...) do {fprintf(stderr, type " %-30s : %-5u | " fmt "\n", __FUNCTION__, __LINE__, ##args);} while (0)
|
#define DEBUG_PRINT(type, fmt, args...) do {fprintf(stderr, type " %20s:%-5u | %-20s | " fmt "\n", __FILE__, __LINE__, __FUNCTION__, ##args);} while (0)
|
||||||
#else
|
#else
|
||||||
#define DEBUG_PRINT(type, fmt, args...) do {} while(0)
|
#define DEBUG_PRINT(type, fmt, args...) do {} while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue