diff options
author | Karel Kočí <cynerd@email.cz> | 2015-03-22 22:05:56 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-03-22 22:05:56 +0100 |
commit | 3b4fbaa22233e764f6b94effd1b21c494061d32c (patch) | |
tree | a7da885e905077137f61f9c5898ade4cbc9da5e5 /programs/src/kconfig_parser/macros.h | |
parent | f0ade98600d1fdcaeb4476ee80fb12b834f61f84 (diff) | |
download | linux-conf-perf-3b4fbaa22233e764f6b94effd1b21c494061d32c.tar.gz linux-conf-perf-3b4fbaa22233e764f6b94effd1b21c494061d32c.tar.bz2 linux-conf-perf-3b4fbaa22233e764f6b94effd1b21c494061d32c.zip |
kconfig_parser: Fix rev_dep and implement verbose level output
After this fix, generated dependency should be all right.
Verbose output implementation is only temporally.
It needs better implementation.
And command line arguments should be parsed with argp.
Diffstat (limited to 'programs/src/kconfig_parser/macros.h')
-rw-r--r-- | programs/src/kconfig_parser/macros.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/programs/src/kconfig_parser/macros.h b/programs/src/kconfig_parser/macros.h new file mode 100644 index 0000000..6044f31 --- /dev/null +++ b/programs/src/kconfig_parser/macros.h @@ -0,0 +1,11 @@ +extern int verbose_level; // Defined in kconfig_parser.c + +#define Eprintf(...) printf(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 > 2) printf(a, __VA_ARGS__) +#endif /* DEBUG */ |