summaryrefslogtreecommitdiff
path: root/source3/lib/debug.c
AgeCommit message (Collapse)AuthorFilesLines
2003-04-19fixesSimo Sorce1-0/+1
fix debug, add "idmap" string to the list of classes fix idmap, check init failures, and enhance debugging fix idmap_tdb, _do_ init uid and gid low,high states (too bad I missed that before) fix smbd/uid.c, use gid_t for gids and uid_t for uids (This used to be commit bc95de4ebb014080bc70173e7df94c672cea8df6)
2003-01-30Move debug level message handling into debug.c from messages.cTim Potter1-0/+14
Removed duplicate message_register() for REQ_DEBUGLEVEL message. (This used to be commit 6fee7196d695ca813a301b1e6d7da687b7e7bda5)
2003-01-29Removed duplicate fn to avoid compiler warning.Tim Potter1-19/+0
(This used to be commit 55d268fdd67e42244128dae8614d0e4aa2eb2da2)
2003-01-23Merge of max log file fixes from appliance:Tim Potter1-1/+3
- smbd/process.c: check log file sizes more often than in timeout_processing() - lib/debug.c: increment debug_count inside Debug1() instead of when log file sizes are checked. (This used to be commit 303710c2065850beebef678e657633497e4d8452)
2003-01-03patch to include support for daemontools from Michael HandlerGerald Carter1-0/+1
(This used to be commit 4c48c475a28450ad4fd8dcc8263e841c0c39a80e)
2003-01-02Call me parinoid, but I don't like the idea that we could ever have dbf pointAndrew Bartlett1-2/+4
to a closed file. Swap the assign and the close around. Andrew Bartlett (This used to be commit ceb2a7984910533187d3345440c24b605306e3cb)
2002-11-15Add const to DEBUG() macro.Andrew Bartlett1-3/+3
(This used to be commit 43020bb4e61e3b44c2637e49f9e98222262f09b1)
2002-11-08Compleatly remove support for logfile truncation. All logs are opened forAndrew Bartlett1-11/+2
append writes. (blessed by jra) Andrew Bartlett (This used to be commit 81633064dd196c40541ecece8def51745f514646)
2002-10-18It seems that I'm meant to be using the helper function here, not the structAndrew Bartlett1-1/+1
directly... Andrew Bartlett (This used to be commit 0abeb8725e8ea53a468d6004457bb7fa89a0f8b2)
2002-09-06patch from metze: add a 'vfs' debug classAndrew Bartlett1-0/+1
(This used to be commit 601b56e04fddd9ddfb9be5b0a625d6d279df7f4c)
2002-09-02Fix typo - Thanks KaiJelmer Vernooij1-1/+1
(This used to be commit 8fb4534212e49d2f64f45cbeb481b9f4a69f3158)
2002-09-01wrong way to handle things, bug found by kaiSimo Sorce1-8/+6
(This used to be commit 58f912da47d18a6a548c50dc9d4298c6bec7ea0d)
2002-08-28Put in intermediate version of new SAM system. It's not stable yet, codeJelmer Vernooij1-0/+1
might be ugly, etc - please don't blame me for anything but instead try to fix the code :-). Compiling of the new sam system can be enabled with the configure option --with-sam Removing passdb/passgrp.c as it's unused fix typo in utils/testparm.c (This used to be commit 4b7de5ee236c043e6169f137992baf09a95c6f2c)
2002-08-21Fix debug level initialization for net.cVolker Lendecke1-1/+1
Volker (This used to be commit 5af5326f1311a49d3c8316e1dcc27037b831065a)
2002-07-28found nasty bug in intl/lang_tdb.c tdb structure was not tested to not be ↵Simo Sorce1-1/+1
null before close this one fixes swat not working with browsers that set more then one language. along the way implemented language priority in web/neg_lang.c with bubble sort also changet str_list_make to be able to use a different separator string Simo. (This used to be commit 69765e4faa8aaae74c97afc917891fc72d80703d)
2002-07-20Don't try and sys_dup2(dbf->fd) if dbf == NULL.Tim Potter1-1/+1
(This used to be commit 0fd155a06c24ec5d1310213baf7a4230242498be)
2002-07-20Add support for duplicating stderr into our logfiles.Andrew Bartlett1-0/+6
This is for two things: To allow panic actions etc to pump out backtraces to stderr and to allow vangrind to put its stuff in a logfile - making it possible to debug smbd when launched from inetd. I've also cleaned up some of the duplicate names in procedures between smbd and nmbd. Andrew Bartlett (This used to be commit 4bcb32731984b4aef1d4911a168a4e7a10d32fd4)
2002-06-18more debug classess activatedSimo Sorce1-1/+1
(This used to be commit 897e64d2e0c1d04ab93441ccaffe369bf43be46e)
2002-06-14moved lp_list_* functions away from param/loadparm.c, put int lib/util_str.cSimo Sorce1-3/+3
and renamed to str_list_* as it is a better name. Elrond should be satisfied now :) (This used to be commit 4ae260adb9505384fcccfb4c9929cb60a45f2e84)
2002-06-14Patch (from ctrlsoft <jelmer@nl.linux.org>) to poptify testparm, and theAndrew Bartlett1-2/+2
modifications required to suppress the const warnings. Andrew Bartlett (This used to be commit ec4f1e9e2f6c162a475b424d63b9802387ad905e)
2002-06-11few fixes from Elrond(elrond@samba-tng.org) and Billy ↵Simo Sorce1-4/+8
O'Connor(billy@oconnoronline.net) (This used to be commit 88718883e031a3249152861300432dfc895ac587)
2002-05-26move debug stuff from messages.c to debug.c (Elrond)Simo Sorce1-0/+19
(This used to be commit 44df5a13bc83dc331caa6788cf0805333ed79f8d)
2002-05-19Fixed compiler warning.Tim Potter1-1/+1
(This used to be commit 793d9306e29ddd23e3f52736b5cd558b5d058611)
2002-05-18so here it is the code to introduce seriously debugggging classes.Simo Sorce1-69/+263
this is a first step only passdb stuff has beein "classized". - so what can you do? set debug level to: 1 poasdb:10 that will make all the code run at debug level 1 except the code in passdb/* files that will run at level 10 TODO: fix the man page - also smbcontrol has this nice feature so smbcontrol smbd debug 3 passdb:5 will set every smbd to have a default log level of 3 while passdb stuff will be at level 5 and so no.. minor cosmetic fix to pdbedit is there too (This used to be commit be5c3b3f5781ddc002ffcc98df04ab024dcef4ca)
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)
2002-01-07merge changes from 2.2 branch to prevent smb.conf from changing debug levelHerb Lewis1-0/+3
of commands when specified on command line. (This used to be commit 39d6b31e14144a3ff4b992d4286b706147e58566)
2001-10-29More spelling and grammer from Vance. <vance@digital-host.net>Andrew Bartlett1-15/+16
Thanks! Andrew Bartlett (This used to be commit f019bed7663b4a20c1b5ab6b59fcadda17b89acd)
2001-10-27smbd/notify_hash.c: Merged Herb's fix.Jeremy Allison1-1/+2
lib/debug.c: Fix for potential null pointer access. Jeremy. (This used to be commit 5a4d22dd66ab782f6161aa5a4162c0e7f1d811fb)
2001-10-02Fixed the bug with member servers in a Samba PDC hosted domain not allowingJeremy Allison1-2/+8
other access. Problem was max time was being set to 0xffffffff, instead of 0x7fffffff. Jeremy. (This used to be commit 94403d841710391ec26539e4b4157439d5778ff7)
2001-09-10replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell1-17/+17
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
2001-07-25got rid of INFO: msgs at debug level 1Andrew Tridgell1-2/+2
(This used to be commit e6773b08a4a1a54dca4a2e2ec5d4e9c43383b072)
2001-07-06got rid of insanely verbose debug messages on startupAndrew Tridgell1-1/+1
(This used to be commit c3a21fc0f21b3f493031cb0c9a6a990528b276d9)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell1-1/+1
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-06-22Fix for race condition found by Herb where we can end up with a NULL dbf.Jeremy Allison1-8/+0
Jeremy. (This used to be commit 5cbb2106735ad0533198a83d62541cabd7beed20)
2001-06-01If a debug class was explicitly set to zero the debug system would notTim Potter1-14/+36
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-05-07Hey what happened to my debug messages? Early exit from reopen_logs()Tim Potter1-0/+11
if using stdout_logging. (This used to be commit 831b0983bd799fd73de18921f09991a1647ec482)
2001-04-28- added test for vasprintfAndrew Tridgell1-42/+0
- 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-04-27More %d (uid_t) stuff...Jeremy Allison1-3/+3
Jeremy. (This used to be commit 73b425121a8c99af3ed7adbdcff3f6f0cec92ac7)
2001-03-27Patch from David Gibson <dgibson@linuxcare.com> to reduce "silent abort"Jeremy Allison1-51/+83
problems with smbd failing to create a log file. If we can't create a log file keep using the old file. Jeremy. (This used to be commit c4e6aa1322fa7bc59708163c42eef6ccbd6c2305)
2001-03-11Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison1-2/+7
RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
2001-02-20up the debug level of the debug level change msgAndrew Tridgell1-2/+2
(This used to be commit 9b25342f4ac4a250b3a10a3bb048ca6baa2ca41e)
2001-02-13It compiles for me now :-). rpc_server/srv_lsa.c - added fix to allow w2kJeremy Allison1-6/+6
clients to join a Samba domain - odd or even domain name length. Needs more testing. Jeremy. (This used to be commit 408672d38261e34cc3714200617b35464d88f931)
2001-02-12Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison1-6/+122
updated the POSIX_ACL code to be in sync. Jeremy. (This used to be commit c0517d6f4e3079feca1309fd1ea7b21e83f0de02)
2000-11-16Fix for a problem with the new messaging system. If a sender is using theJeremy Allison1-1/+1
messaging system as a notification mechanism, and the speed of notification greatly exceeds the speed of message recovery, then you get a massively (>75Mb) growing tdb. If the message is a simple notification, then the message is static, and you only need one of them in transit to a target process at any one time. This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives. If set to False, then before sending a message the sender checks the existing message queue for a target pid for a duplicate of this message, and doesn't add to it if one already exists. Also added code into msgtest.c to test this. Jeremy. (This used to be commit 3aa7995660395ecb85c8e35b638fa9fbbb952558)
2000-11-10Merge in Herb's changes from 2.2.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 24d76c5fbda29d89c96d7c22193ec2eb93ad3887)
2000-09-12- changed the msg_type to be an int instead of an enum so that it isAndrew Tridgell1-1/+1
easier to add new message types to messages.h without breaking old binaries - added a MSG_FORCE_ELECTION message to force nmbd to hold an election (This used to be commit f1c49ca7ce56bc39259041a71479e84ebf53eeca)
2000-09-12much nicer message interface. We now register dispatch functions,Andrew Tridgell1-18/+17
allowing new bits of code or vfs modules to register functions without impacting on the messaging code itself. Also note that multiple registrations for the same message type are possible allowing the same message to be delivered to multiple parts of the code (possibly useful for reload messages). (This used to be commit c3350c77f52cade48d2945574e09cb630af85b92)
2000-09-11the first cut of the internal messaging system.Andrew Tridgell1-44/+17
The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message. (This used to be commit 2a34ee95f3929cff131db6c5a2b4820194c05b2d)
2000-08-28made reopen_logs() always re-open logs, not try and be smart about notAndrew Tridgell1-37/+34
re-opening in some circumstances. This fixes a problem where a HUP does not re-open logs and leaves the log open on a unlinked file. (This used to be commit f99f028c77482e591741df2a3da7f036f7409a68)