aboutsummaryrefslogtreecommitdiff
path: root/scripts/shared/macros.h
blob: 95bb16f994cc2176c4fe4af4a16386b9d67e8d94 (plain)
1
2
3
4
5
6
7
8
9
10
11
extern int verbose_level; // Defined in kconfig_parser.c

#define Eprintf(...) fprintf(stderr, __VA_ARGS__)
#define Wprintf(...) if (verbose_level > 1) printf(__VA_ARGS__)
#define Iprintf(...) if (verbose_level > 2) printf(__VA_ARGS__)

#ifndef DEBUG
#define Dprintf(...)
#else
#define Dprintf(...) if (verbose_level > 3) printf(a, __VA_ARGS__)
#endif /* DEBUG */