[asterisk-dev] Janitor Project - ast_debug() conversion
Dmitry Andrianov
dimas at dataart.com
Tue Jun 12 13:36:06 CDT 2007
Russel,
I think that macro definition (patch for logger.h) can be safely applied
to 1.4 branch too.
This will make it easier merging changes from trunk if these changes
will be already using ast_debug.
Regards,
Dmitry Andrianov
-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Russell
Bryant
Sent: Tuesday, June 12, 2007 8:18 PM
To: Asterisk Developers Mailing List
Subject: [asterisk-dev] Janitor Project - ast_debug() conversion
Dmitry Andrianov has created a new macro, ast_debug() which simplifies
debug logging. He has also converted main/pbx.c to use it. Now, the
rest of the code base needs to get converted. If you are interested in
helping, volunteer to take a section of the code in this thread so you
don't duplicate efforts. :)
Currently, you will see code like:
if (option_debug)
ast_log(LOG_DEBUG, ...);
if (option debug > 3)
ast_log(LOG_DEBUG, ...);
Now, that would look like
ast_debug(1, ...);
ast_debug(3, ...);
--
Russell Bryant
Software Engineer
Digium, Inc.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list