[riot-devel] ENABLE_DEBUG per module?

Kaspar Schleiser kaspar at schleiser.de
Tue Apr 21 11:26:29 CEST 2015


Hey,

On 04/21/15 10:14, Oleg Hahm wrote:
> some time ago Martine proposed to move the `ENABLE_DEBUG` macro from file to
> module context [1]. Since this would effect the whole RIOT printf debugging, I
> would like to call on the mailing list if someone thinks that this would be a
> bad idea.

I like that I can switch on debugging per file. Still you can easily use 
"#define ENABLE_DEBUG MY_MODULE_DEBUG_FLAG" before including debug.h. So 
we already have both options. Why change?

Kaspar


More information about the devel mailing list