From: Roman Fietze on
Hello Jason,

On Wednesday 26 May 2010 20:35:59 Jason Baron wrote:

> ... we want this to be runtime configurable.
> That is, we probably want this implemented as a module parameter, not as
> a compile time thing. something like: modprobe module verbose=1

Kind of

#define dynamic_pr_debug(fmt, ...) do { \
...
DEBUG_HASH2, __LINE__, \
verbose ? _DPRINTK_FLAGS_PRINT : _DPRINTK_FLAGS_DEFAULT}; \
...

But what if verbose isn't there?

Or something smarter inside dynamic_debug_setup() or
ddebug_add_module() looking for a module symbol or parameter with that
name?

If you'll give me a hint I could probably implement a proposal.


Roman

--
Roman Fietze Telemotive AG Büro Mühlhausen
Breitwiesen 73347 Mühlhausen
Tel.: +49(0)7335/18493-45 http://www.telemotive.de

Amtsgericht Ulm HRB 541321
Vorstand:
Peter Kersten, Markus Fischer, Franz Diller, Markus Stolz