summaryrefslogtreecommitdiffstats
path: root/source/include/debug.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings on SuSE 9.0.Karolin Seeger2008-06-271-0/+8
| | | | | The macros "[un]likely" are already defined on SuSE 9.0. Patch from Volker.
* Fix tab_depth: it should not create an extra debug header.Michael Adam2008-01-231-2/+5
| | | | | | | | | | | | In pstring removal 4ae4b23586, the behaviour of tab_depth was changed to create an extra debug header (by using the DEBUGLVL macro). This extracts the debug level check from DEBUGLVL into a macro CHECK_DEBUGLVL without the debug header creation and uses this instead of DEBUGLVL in tab_depth. Michael
* Fix the non-gcc branch of "likely"Volker Lendecke2007-12-281-2/+2
|
* Wrap the DEBUG checks in a "unlikely"Volker Lendecke2007-12-271-6/+21
| | | | | | | | | | | | On my Laptop with some limited netbench runs this gains about 1.5% of performance. When looking at the assembler output I would suspect the biggest gain is by the fact that with this in place the calls to the debug functions is moved to the function end, out of the way of the normal code paths. valgrind tests pending I would suspect this to be much more cache friendly. Comments? Volker
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-1/+0
| | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-3/+3
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r25434: Add the option to print the debug class (DBGC_CLASS) in the debug ↵Michael Adam2007-10-101-5/+5
| | | | | | | | | | | header. Control this by a new boolean smb.conf option "debug class" which is by default set to "no" to keep the default debug header unchanged. Michael Note: You need to make clean for this patch.
* r25416: Add registry debug class.Günther Deschner2007-10-101-0/+1
| | | | Guenther
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r14898: This change is an attempt to improve the quality of the information thatJames Peach2007-10-101-0/+4
| | | | | | | | | | | | | | | | | is produced when a process exits abnormally. First, we coalesce the core dumping code so that we greatly improve our odds of being able to produce a core file, even in the case of a memory fault. I've removed duplicates of dump_core() and split it in two to reduce the amount of work needed to actually do the dump. Second, we refactor the exit_server code path to always log an explanation and a stack trace. My goal is to always produce enough log information for us to be able to explain any server exit, though there is a risk that this could produce too much log information on a flaky network. Finally, smbcontrol has gained a smbd fault injection operation to test the changes above. This is only enabled for developer builds.
* r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-basedJames Peach2007-10-101-0/+1
| | | | HSM is interested in. Tested on both IRIX and SLES9.
* r12951: Tell the MIPSPro compiler to push DEBUG calls out of line.James Peach2007-10-101-0/+6
|
* r8427: Printerdb has been moved into a tmp branch.Günther Deschner2007-10-101-3/+2
| | | | Guenther
* r7981: MS-DFS tidyup patches from James Peach <jpeach@sgi.com>.Jeremy Allison2007-10-101-0/+1
| | | | | Looking forward to the day he can commit these himself :-). Jeremy.
* r6502: add LOCKING debug class - pull PRINTINGDB class definition from trunkHerb Lewis2007-10-101-0/+2
| | | | so our numbers don't get out of sync
* r1332: Typo fix.Rafal Szczesniak2007-10-101-1/+1
|
* r428: add acls debug classHerb Lewis2007-10-101-0/+1
|
* Apply James' printf format checking patch for SGI MIPSPro compiler.Tim Potter2004-02-091-0/+3
|
* * Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTAStefan Metzmacher2004-01-151-0/+1
| | | | | | | | | XFS_GROUP_QUOTA -> GRPQUOTA * Fix disk_free calculation with group quotas. * Add debug class 'quota' and a lot of DEBUG()'s to the quota code. metze
* And finally IDMAP in 3_0Simo Sorce2003-05-121-0/+1
| | | | | | | | | | | | | | | | | | | | We really need idmap_ldap to have a good solution with ldapsam, porting it from the prvious code is beeing made, the code is really simple to do so I am confident it is not a problem to commit this code in. Not committing it would have been worst. I really would have been able to finish also the group code, maybe we can put it into a followin release after 3.0.0 even if it may be an upgrade problem. The code has been tested and seem to work right, more testing is needed for corner cases. Currently winbind pdc (working only for users and not for groups) is disabled as I was not able to make a complete group code replacement that works somewhat in a week (I have a complete patch, but there are bugs) Simo.
* Merge from HEAD:Tim Potter2002-12-051-9/+4
| | | | >Remove FILE_MACRO as __FILE__ is ANSI C.
* Merge from HEAD:Andrew Bartlett2002-11-151-3/+3
| | | | | | | | | | | | - heimdal updates to configure - make DEBUG() const - add testsuite for: - preexec - preexec close - valid users - fix testsuite for 'invalid users' Andrew Bartlett
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-3/+4
|
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-20/+23
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* allow a MAX_DEBUG_LEVEL setting in local.h (or the Makefile)Andrew Tridgell2001-12-061-6/+12
| | | | | | This allows embedded systems to compile out the higher debug levels. It should gain speed as well as reducing the code size. Setting it to 1 saves about 300k of code on my system.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-1/+0
|
* - enable MSDFS by default, there seems no reason not to have it enabledAndrew Tridgell2001-09-121-0/+1
| | | | | | | | by default in Samba 3.x - got rid of some unused parameters in Makefile.in - declare DEBUGLEVEL in debug.h rather than in each file
* declare dbf in one spotAndrew Tridgell2001-09-101-0/+2
|
* If a debug class was explicitly set to zero the debug system would notTim Potter2001-06-011-13/+27
| | | | | | | | | | | | | | | | recognise it as there was no distinction made between zeroing a debug class and just not setting it to anything. I've added a debuglevel_isset array in parallel with the debuglevel_class array to fix this. Added a couple of new debug classes which I might start filling out to get smb, rpc header and rpc marshall/unmarshalling debugs tidied up. Fixed a bunch of cut&paste bugs in include/debug.h Modified smbcontrol and the messaging system debug handler to like the debuglevel_isset stuff.
* - added test for vasprintfAndrew Tridgell2001-04-281-15/+2
| | | | | | | | - cleaned up GNUC printf attribute macros - added enum handling in mkproto - removed non-vararg code - made slprintf and vslprintf just macros for snprintf and vsnprintf - don't need slprintf code any more
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-121-23/+109
| | | | | updated the POSIX_ACL code to be in sync. Jeremy.
* Fix for printf attribute from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>Jeremy Allison2000-10-061-2/+2
| | | | | Added "codepage directory" patch from Peter.Polkinghorne@brunel.ac.uk Jeremy.
* Typo. It said "DEGUG" in the comments. I dunno how to degug, or gug forChristopher R. Hertel2000-07-121-1/+1
| | | | that matter. crh
* Busting up of source/include/smb.h into smaller pieces which can beTim Potter2000-02-031-0/+103
| | | | #included by VFS modules without bringing in too much other junk.
* 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1999-12-131-121/+0
| | | | that were in the head branch but weren't in SAMBA_2_0
* Hived off debugging code from smb.h and put into debug.hTim Potter1999-06-131-0/+121