so I noticed there is a G.debug and a lot of different --debug options to enable debugging in various parts of the code. this seems to have some overlap with what the clog code does. this is my attempt at adding debugging support to clog and removing more printf statements.
Summary of changes
- added a CLOG_DEBUG macro
- changed a bunch of printf statements to use CLOG_DEBUG
- second attempt at refactoring duplicated code out of CLG_log/CLG_logf
- refactored some repeated code out of blf.c
- removed lots of err_out parameters from some function calls (not sure if this was a good idea or not now)
- attempt to refactor duplicated code from report.c
- the --debug-* command line options also set some corresponding clog filters