summaryrefslogtreecommitdiff
path: root/source3/include/debug.h
AgeCommit message (Collapse)AuthorFilesLines
2008-10-11Provide the same set of helper functions for DEBUG in Samba 3 and SambaJelmer Vernooij1-5/+7
4, even though the macros are still different. This makes it possible to use object code compiled with one DEBUG() macro from the other sourceX directory.
2008-06-27Fix warnings on SuSE 9.0.Karolin Seeger1-0/+8
The macros "[un]likely" are already defined on SuSE 9.0. Patch from Volker. (This used to be commit 30d181c92463aecd6e649330d3645d86d5a17e43)
2008-01-23Fix tab_depth: it should not create an extra debug header.Michael Adam1-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 (This used to be commit cbc7d921fa696e6c3c5197ad9f87442ba679df82)
2007-12-28Fix the non-gcc branch of "likely"Volker Lendecke1-2/+2
(This used to be commit 1e07368b5f96e4ada622682e38d260eb0c6185f2)
2007-12-27Wrap the DEBUG checks in a "unlikely"Volker Lendecke1-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 (This used to be commit 51448a9dca95de9d35dd8eea68fde2554cb69921)
2007-11-15More pstring removal. This one was tricky. I had to addJeremy Allison1-1/+0
one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-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. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25434: Add the option to print the debug class (DBGC_CLASS) in the debug ↵Michael Adam1-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. (This used to be commit 066a46ba91ca734d9e20cb9d6db36fec209a27d7)
2007-10-10r25416: Add registry debug class.Günther Deschner1-0/+1
Guenther (This used to be commit b28dd747cb5a3d0eee865076eb4733dc123a6968)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r14898: This change is an attempt to improve the quality of the information thatJames Peach1-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. (This used to be commit 56bc02d64498eb3faf89f0c5452b9299daea8e95)
2007-10-10r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-basedJames Peach1-0/+1
HSM is interested in. Tested on both IRIX and SLES9. (This used to be commit 514a767c57f8194547e5b708ad2573ab9a0719c6)
2007-10-10r12951: Tell the MIPSPro compiler to push DEBUG calls out of line.James Peach1-0/+6
(This used to be commit a346059912c05d2b4a27892571d6e89f44907d5c)
2007-10-10r8427: Printerdb has been moved into a tmp branch.Günther Deschner1-3/+2
Guenther (This used to be commit 9dc4e4f0127b3f59ccc455bdba419a9d35eaa12e)
2007-10-10r7981: MS-DFS tidyup patches from James Peach <jpeach@sgi.com>.Jeremy Allison1-0/+1
Looking forward to the day he can commit these himself :-). Jeremy. (This used to be commit 12ff2978295a84fe6177af129c495a0021befacc)
2007-10-10r6502: add LOCKING debug class - pull PRINTINGDB class definition from trunkHerb Lewis1-0/+2
so our numbers don't get out of sync (This used to be commit 58e307664e02ebf0415f19ed625d2f166d9cb1cc)
2007-10-10r1332: Typo fix.Rafal Szczesniak1-1/+1
(This used to be commit 659ddcc4434afc302ebd3d48aca6b4ef68468eb2)
2007-10-10r428: add acls debug classHerb Lewis1-0/+1
(This used to be commit b7703799f8899affda205eacb0bf79cf8e2b9362)
2004-02-09Apply James' printf format checking patch for SGI MIPSPro compiler.Tim Potter1-0/+3
(This used to be commit 27242f44e6cfa10b7b7f74bcfb6c81786aaffae0)
2004-01-15* Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTAStefan Metzmacher1-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 (This used to be commit e9e5e2036f13ff847aa3ef52e8be657bef7d5774)
2003-05-12And finally IDMAP in 3_0Simo Sorce1-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. (This used to be commit 0e58085978f984436815114a2ec347cf7899a89d)
2002-12-05Merge from HEAD:Tim Potter1-9/+4
>Remove FILE_MACRO as __FILE__ is ANSI C. (This used to be commit 21eb4b5a2dd2f9a6a0d3cd94408bb52359d2e926)
2002-11-15Merge from HEAD:Andrew Bartlett1-3/+3
- heimdal updates to configure - make DEBUG() const - add testsuite for: - preexec - preexec close - valid users - fix testsuite for 'invalid users' Andrew Bartlett (This used to be commit aa41fb8703db4a4ecd3b353874c99a994e8ed630)
2002-09-25sync'ing up for 3.0alpha20 releaseGerald Carter1-3/+4
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-20/+23
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-12-06allow a MAX_DEBUG_LEVEL setting in local.h (or the Makefile)Andrew Tridgell1-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. (This used to be commit f34cac3b312f273a2363919655ddd1e25cb91305)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-1/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-12- enable MSDFS by default, there seems no reason not to have it enabledAndrew Tridgell1-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 (This used to be commit b8651acb9c0d7248a6a2e82c33b1e43633fd83fd)
2001-09-10declare dbf in one spotAndrew Tridgell1-0/+2
(This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)
2001-06-01If a debug class was explicitly set to zero the debug system would notTim Potter1-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. (This used to be commit 391e7caf76cbc22021629ef0ec5e0c32806edfd7)
2001-04-28- added test for vasprintfAndrew Tridgell1-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 (This used to be commit c7aeb2254dfc3cd0aa0b6c0bdd426f9323be0ddf)
2001-02-12Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison1-23/+109
updated the POSIX_ACL code to be in sync. Jeremy. (This used to be commit c0517d6f4e3079feca1309fd1ea7b21e83f0de02)
2000-10-06Fix for printf attribute from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>Jeremy Allison1-2/+2
Added "codepage directory" patch from Peter.Polkinghorne@brunel.ac.uk Jeremy. (This used to be commit e49566c2e21fcd16980e5110495645c5ae5a36da)
2000-07-12Typo. It said "DEGUG" in the comments. I dunno how to degug, or gug forChristopher R. Hertel1-1/+1
that matter. crh (This used to be commit 6ee63ecfa5f9c984f51c15597a50e085ab722e87)
2000-02-03Busting up of source/include/smb.h into smaller pieces which can beTim Potter1-0/+103
#included by VFS modules without bringing in too much other junk. (This used to be commit 13a2cf80f65156e725a5716e62a4c44e70f5340f)
1999-12-132nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1-121/+0
that were in the head branch but weren't in SAMBA_2_0 (This used to be commit d7b208786590b5a28618590172b8d523627dda09)
1999-06-13Hived off debugging code from smb.h and put into debug.hTim Potter1-0/+121
(This used to be commit afe5be3cf62b90100861e2433ea885f5d6f8708c)