summaryrefslogtreecommitdiffstats
path: root/lib/util/debug.c
Commit message (Collapse)AuthorAgeFilesLines
* debug: log early messages to stdout, and keep it openAndrew Bartlett2011-07-201-0/+6
| | | | | | | | | The --log-stdout option was compromised by the log file descriptors being closed once the file process forked. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util/ Fix crash bug caused by gfree_debug()Andrew Bartlett2011-05-131-1/+1
| | | | | | | The issue is that we should reset the debug_num_classes to 0 when we un-initialise the debug system. Andrew Bartlett
* debug: default debug to stderr Andrew Tridgell2011-04-041-1/+2
| | | | | | | if setup_logging() hasn't been called then default to sending debug to stderr Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* debug: Restore the s3-style check in check_log_size()Volker Lendecke2011-03-311-1/+6
| | | | | | | This has caused me considerable grief. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 31 19:42:38 CEST 2011 on sn-devel-104
* debug: ignore debug_set_logfile() with a blank stringAndrew Tridgell2011-03-291-1/+5
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Mar 29 07:03:58 CEST 2011 on sn-devel-104
* debug: fixed a valgrind errorAndrew Tridgell2011-03-041-1/+4
| | | | | | | Thanks to Volker for spotting this one! Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Mar 4 03:09:52 CET 2011 on sn-devel-104
* lib/util: new merged debug systemAndrew Bartlett2011-03-011-0/+1059
| | | | | | | | | | | | This is the s3 debug system, with a number of changes to tidy it up for common use. The debug class system is simplified by the removal of the ISSET table, the system no longer attempts to cope with assignment of DEBUGLEVEL, and the full class table is always available (rather than just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer confusingly described as a hack, but as the initial table. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
* lib/util move debug.[ch] out of the wayAndrew Bartlett2011-03-011-273/+0
| | | | | | | This will allow a modified version of the s3 debug system to be the new common debug system. Andrew Bartlett
* lib/debug Add clarifying commentsAndrew Bartlett2010-11-241-2/+2
|
* debug: fixed default debug settingsAndrew Tridgell2010-11-041-0/+2
| | | | | | | | | this fixes -d in our command line tools (eg. samba-tool) Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Nov 4 01:48:15 UTC 2010 on sn-devel-104
* debug Explain the behaviour of setup_logging() more clearlyAndrew Bartlett2010-11-021-1/+7
|
* lib/debug Use vdprintf rather than manually allocateAndrew Bartlett2010-11-021-5/+1
| | | | | | | | | | This allows the system to use whatever buffers it wants for the string rather than assuming we need to malloc() it. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 2 00:18:43 UTC 2010 on sn-devel-104
* lib/util Remove setup_logging_stdout()Andrew Bartlett2010-11-011-9/+0
| | | | | | | | This API is no longer required now that we don't attempt to build ndrdump with the s3 build system, and because the s3 debug system will soon have the same setup_logging() API. Andrew Bartlett
* debug: enable talloc loggingAndrew Tridgell2010-04-021-0/+12
| | | | we want to ensure talloc warnings are printed in the log
* Fix ndrdump to use a common setup_logging() APIAndrew Bartlett2009-06-291-0/+8
| | | | | | | | | By adding a new common setup_logging_stdout() API, we no longer need to abuse the ABI compatability between the different setup_logging() calls in Samba3 and Samba4's DEBUG() subsystems. The revert of 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 works with this to fix bug 6211. Andrew Bartlett
* Fix build of recurusion fix in reopen_logs()Andrew Bartlett2009-06-111-1/+1
|
* Don't recurse in reopen_logs().Andrew Bartlett2009-06-111-0/+6
| | | | | | | Use the state to avoid recursion in reopen_logs(), as DEBUG() can call this function. Andrew Bartlett
* lib/util: s/class/dclassStefan Metzmacher2009-02-021-1/+1
| | | | metze
* Provide two symbols to allow ndrdump compiled by Samba 3 to be used forJelmer Vernooij2008-10-201-0/+1
| | | | Samba 4.
* Fix segfault when using DEBUG() in the merged build.Jelmer Vernooij2008-10-191-1/+4
|
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+248
Conflicts: source4/Makefile