summaryrefslogtreecommitdiff
path: root/source3/lib/debug.c
AgeCommit message (Collapse)AuthorFilesLines
2007-12-15Add debug_ctx according to an idea by TridgeVolker Lendecke1-0/+14
Sorry, Jeremy, I think for debug messages this is just the right way to do it. (This used to be commit 6312016e2727c2b5b1a4964a98cfb9585d77cc8c)
2007-12-14debug: fix crash bug when DEBUG() is used before setup_logging()Stefan Metzmacher1-0/+4
this was introduced by the pstring removal (1ea3ac80146b83c2522b69e7747c823366a2b47d) metze (This used to be commit a412e6c7c676a054acd9db371221a50078cfe1d9)
2007-11-26Fix a C++ warningVolker Lendecke1-1/+1
(This used to be commit 9bf5ead4b2be57fa84e5b3137bfa0305a916f10f)
2007-11-15More pstring removal. This one was tricky. I had to addJeremy Allison1-36/+69
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-21/+21
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-1/+10
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-10r25424: Align log level (by two) in debugging output.Michael Adam1-1/+1
Michael (This used to be commit 9265b3cde25208884a8d3a9c42461d1c6e6fc353)
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-10r23226: Make the "debug prefix timestamp" output a bit more readable by makingVolker Lendecke1-1/+1
the debug level alway at least 2 digits (This used to be commit 94d2fd919c268efa3df2661d2ccb32e492c52f53)
2007-10-10r22910: Make message_send_pid static to messages.cVolker Lendecke1-12/+20
(This used to be commit 27224922cf964cc70aad7cf529ab6c03fb277a89)
2007-10-10r22908: All callers of message_init now also call messaging_init. Unify those.Volker Lendecke1-16/+6
(This used to be commit 330946ad2307ca34f0a8d068a0193fcb8a0d6036)
2007-10-10r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke1-2/+2
patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker (This used to be commit 0ad4b1226c9d91b72136310d3bbb640d2c5d67b8)
2007-10-10r22213: We can't use become_root() here, as it does DEBUG()Volker Lendecke1-5/+8
itself. become_root_uid_only did not :-) Revert 21868, we need to find a better way. Volker (This used to be commit 629f966714c7a8d96b06027d514b86cde81b69b9)
2007-10-10r22096: become_root_uid_only() is unneeded - it's only used inJeremy Allison1-2/+2
messages.c. Refactor to use become_root() instead and make it local to messages.c Jeremy. (This used to be commit f3ffb3f98472b69b476b702dfe5c0575b32da018)
2007-10-10r21868: Remove check_log_size from the central smbd processing loop. This ↵Volker Lendecke1-8/+5
can be done with a become_root/unbecome_root in debug.c. (This used to be commit 4632a0caaf251d9cc7b9d84cbd20362d37f0e4e0)
2007-10-10r21825: add debug prefix timestamp to allow "short timestamps" to beHerb Lewis1-2/+8
added to debug messages (This used to be commit 4af2795e65f6bab156b300d720c7ea75c944bb87)
2007-10-10r21064: The core of this patch isVolker Lendecke1-4/+4
void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker (This used to be commit c8ae60ed65dcce9660ee39c75488f2838cf9a28b)
2007-10-10r17334: Some C++ warningsVolker Lendecke1-5/+5
(This used to be commit 8ae7ed1f3cecbb5285313d17b5f9511e2e622f0b)
2007-10-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison1-1/+1
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r16388: Klocwork #320. Null deref.Jeremy Allison1-0/+5
Jeremy. (This used to be commit ceea8e21006bd6bae9e203a672f82e4d066bba28)
2007-10-10r15003: patch based on code from Arkady Glabek <aglabek@centeris.com> to ↵Gerald Carter1-1/+22
ensure that global memory is freed when unloading pam_winbind.so (needs more testing on non-linux platforms) (This used to be commit 1e0b79e591d70352a96e0a0487d8f394dc7b36ba)
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-10r14397: Fix deadcode in coverity error #1.Jeremy Allison1-7/+8
Jeremy. (This used to be commit 4a4953c4d27cd1e925c9afe24fa49b015ce033ec)
2007-10-10r10656: BIG merge from trunk. Features not copied overGerald Carter1-6/+12
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10r8428: some more old printerdb stuff.Günther Deschner1-1/+0
Guenther (This used to be commit 25fa0e82c1ee1a568ffe201fbabb95cc809162b6)
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-10r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison1-7/+6
allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2007-10-10r1834: prevent infinite recusion in reopen_logs() when expanding the ↵Gerald Carter1-1/+7
smb.conf variable %I (This used to be commit 08037bd4427a99150c1cc65770681ec3f92f4ad5)
2007-10-10r1425: Fix memleak in interactive mode. Reformat..Jeremy Allison1-312/+292
Jeremy. (This used to be commit 5d720e52d749489726c2c671c6cac2d706f750c8)
2007-10-10r772: fix cut and paste error in commentHerb Lewis1-1/+1
(This used to be commit a3bb4909c34c50673e0859be35200a8628ecdb8c)
2007-10-10r428: add acls debug classHerb Lewis1-0/+1
(This used to be commit b7703799f8899affda205eacb0bf79cf8e2b9362)
2007-10-10r416: add a newline to the debuglevel message returned stringHerb Lewis1-3/+4
and have smbcontrol print the PID with it (This used to be commit d3edf71885bfb5d342e62d46542db8ca814f3303)
2004-03-26source code fix for bug 1095 -- honor the '-l' optionGerald Carter1-0/+7
(This used to be commit ab48af6993b427f525c36aa0ffd57c612c100561)
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)
2003-01-30Merge of REQ_DEBUGLEVEL messaging and debug_count fixes from HEAD.Tim Potter1-12/+7
(This used to be commit abb112ba2ad362036c7b3f340d5f64d6fcc0cd3c)
2003-01-29Removed duplicate fn to avoid compiler warning. (from HEAD - tpot).Jeremy Allison1-0/+2
Jeremy. (This used to be commit 60be9a2f1e6d18562218a55e1a1f753e34fb1e5b)
2003-01-04Merge from HEAD - baseless parinoia about never having a closed dbf (the debugAndrew Bartlett1-2/+4
file pointer). Andrew Bartlett (This used to be commit c8a809a2a83974330bc1015d07d69f40a4a09610)
2003-01-03patch to include support for daemontools from Michael HandlerGerald Carter1-0/+1
(This used to be commit a8db1b611d83bfd8dcf60f1e6d8fcbf57c798528)
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-11-09Last sync with HEADJelmer Vernooij1-11/+2
(This used to be commit 1175b62337f5c29954cd5e8dfdc2327c9c80748c)
2002-10-26Try to catch up on the code I've put into HEAD that should be in 3.0:Andrew Bartlett1-1/+1
- vorlan's hosts allow with DNS names patch - use x_fileno() in debug.c, not the struct directly. - check for server timeout on password change (was reporting success) - better error/status loggin in both the pam_winbind client and winbindd_pam server code. - (pdb_ldap) don't set the ldap version twice - we do it on every bind anyway. (This used to be commit 9fa1863d8e7788eda83911ca2610754486b33069)
2002-09-25sync'ing up for 3.0alpha20 releaseGerald Carter1-9/+9
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-08-17sync 3.0 branch with headJelmer Vernooij1-1/+7
(This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-73/+290
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-03-14getpid() -> sys_getpid()Tim Potter1-2/+2
(This used to be commit a3cea5e9ae3b53ecbc45e61a39cbce0ca1b916aa)
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)