Hi,
at the moment, the following debug levels are used in all powersave code
files:
#define DBG_ERR 1
#define DBG_WARN 2
#define DBG_DIAG 4
#define DBG_INFO 8
#define DBG_DEBUG 16
For quite some time now, I am wondering in which context one should use a
specific debug level. I think the usage mixed up during the past and we
need some cleaning here. So let me give a short explanation from my
personal opinion in which context each level should be used. Please
comment, because I am not sure.
DBG_ERR:
Really severe errors the user should be noticed of. Often combined
with a immediate exit.
DBG_WARN:
Warnings regarding unsupported features or unexpected behaviour.
Due to the fact that these are set as default debug levels, they should be
used as infrequently as possible. Only where needed. Should be clear IMO.
The next two seem confusing to me. What's the correct differentiation for
them? DBG_INFO should have an informal meaning. But for what is DBG_DIAG
then good for? Maybe someone can explain.
IMO, DBG_DEBUG must not be svn. It should only be used for local debugging
purposes. Correct?
Regards,
Holger
_______________________________________________
powersave-devel mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/powersave-devel