include/debug.h

ソースコードを見る。

関数

int Debug1 (const char *,...) PRINTF_ATTRIBUTE(1
int BOOL dbgtext (const char *,...) PRINTF_ATTRIBUTE(1
int BOOL BOOL dbghdr (int level, const char *file, const char *func, int line)

変数

XFILEdbf
pstring debugf
int DEBUGLEVEL
int * DEBUGLEVEL_CLASS
BOOLDEBUGLEVEL_CLASS_ISSET


関数

int Debug1 ( const char *  ,
  ... 
)

参照元 bufr_print()create_browser_in_lmb_cache()dbghdr()expire_lmb_browsers()format_debug_text()make_subnet().

int BOOL dbgtext ( const char *  ,
  ... 
)

参照元 add_logon_names()announce_and_sync_with_domain_master_browser()announce_local_master_browser_to_domain_master_browser()become_domain_master_browser_bcast()become_domain_master_browser_wins()become_domain_master_query_success()become_domain_master_stage2()become_local_master_stage2()collect_all_workgroup_names_from_wins_server()debug_nmb_packet()domain_master_node_status_fail()domain_master_node_status_success()dump_workgroups()find_all_domain_master_names_query_fail()find_all_domain_master_names_query_success()find_domain_master_name_query_fail()find_domain_master_name_query_success()get_domain_master_name_node_status_fail()get_domain_master_name_node_status_success()initial_break_processing()irix_release_kernel_oplock()linux_release_kernel_oplock()merge_aces()name_query()open_socket_in()print_canon_ace()print_canon_ace_list()query_name()query_name_from_wins_server()query_name_response()query_name_timeout_response()reply_setattrE()set_canon_ace_list()setup_dfs_referral()smbc_utimes_ctx()sync_with_dmb()sync_with_lmb()unbecome_local_master_fail()unbecome_local_master_success()wins_process_name_refresh_request().

int BOOL BOOL dbghdr ( int  level,
const char *  file,
const char *  func,
int  line 
)

debug.c935 行で定義されています。

参照先 current_timestring()Debug1()errnoformat_poslp_loaded()stdout_loggingsys_getpid()syslog_level.

00936 {
00937         /* Ensure we don't lose any real errno value. */
00938         int old_errno = errno;
00939 
00940         if( format_pos ) {
00941                 /* This is a fudge.  If there is stuff sitting in the format_bufr, then
00942                  * the *right* thing to do is to call
00943                  *   format_debug_text( "\n" );
00944                  * to write the remainder, and then proceed with the new header.
00945                  * Unfortunately, there are several places in the code at which
00946                  * the DEBUG() macro is used to build partial lines.  That in mind,
00947                  * we'll work under the assumption that an incomplete line indicates
00948                  * that a new header is *not* desired.
00949                  */
00950                 return( True );
00951         }
00952 
00953 #ifdef WITH_SYSLOG
00954         /* Set syslog_level. */
00955         syslog_level = level;
00956 #endif
00957 
00958         /* Don't print a header if we're logging to stdout. */
00959         if( stdout_logging )
00960                 return( True );
00961 
00962         /* Print the header if timestamps are turned on.  If parameters are
00963          * not yet loaded, then default to timestamps on.
00964          */
00965         if( lp_timestamp_logs() || lp_debug_prefix_timestamp() || !(lp_loaded()) ) {
00966                 char header_str[200];
00967 
00968                 header_str[0] = '\0';
00969 
00970                 if( lp_debug_pid())
00971                         slprintf(header_str,sizeof(header_str)-1,", pid=%u",(unsigned int)sys_getpid());
00972 
00973                 if( lp_debug_uid()) {
00974                         size_t hs_len = strlen(header_str);
00975                         slprintf(header_str + hs_len,
00976                         sizeof(header_str) - 1 - hs_len,
00977                                 ", effective(%u, %u), real(%u, %u)",
00978                                 (unsigned int)geteuid(), (unsigned int)getegid(),
00979                                 (unsigned int)getuid(), (unsigned int)getgid()); 
00980                 }
00981   
00982                 /* Print it all out at once to prevent split syslog output. */
00983                 if( lp_debug_prefix_timestamp() ) {
00984                     (void)Debug1( "[%s, %d%s] ",
00985                         current_timestring(lp_debug_hires_timestamp()), level,
00986                         header_str);
00987                 } else {
00988                     (void)Debug1( "[%s, %d%s] %s:%s(%d)\n",
00989                         current_timestring(lp_debug_hires_timestamp()), level,
00990                         header_str, file, func, line );
00991                 }
00992         }
00993 
00994         errno = old_errno;
00995         return( True );
00996 }


変数

XFILE* dbf

debug.c81 行で定義されています。

参照元 check_log_size()dbgflush()Debug1()main()need_to_check_log_size()parse_quota_set()reopen_logs()setup_logging()smbc_init_context()writetarheader().

pstring debugf

debug.c82 行で定義されています。

参照元 check_log_size()Debug1()reopen_logs().

int DEBUGLEVEL

debug.c106 行で定義されています。

参照元 ads_get_gpo_list()api_wkssvc_NetrAddAlternateComputerName()api_WKSSVC_NETRENUMERATECOMPUTERNAMES()api_WKSSVC_NETRGETJOINABLEOUS()api_WKSSVC_NETRGETJOINABLEOUS2()api_WKSSVC_NETRGETJOININFORMATION()api_WKSSVC_NETRJOINDOMAIN()api_wkssvc_NetrJoinDomain2()api_WKSSVC_NETRLOGONDOMAINNAMEADD()api_WKSSVC_NETRLOGONDOMAINNAMEDEL()api_WKSSVC_NETRMESSAGEBUFFERSEND()api_wkssvc_NetrRemoveAlternateComputerName()api_WKSSVC_NETRRENAMEMACHINEINDOMAIN()api_wkssvc_NetrRenameMachineInDomain2()api_WKSSVC_NETRSETPRIMARYCOMPUTERNAME()api_WKSSVC_NETRUNJOINDOMAIN()api_wkssvc_NetrUnjoinDomain2()api_WKSSVC_NETRUSEADD()api_WKSSVC_NETRUSEDEL()api_WKSSVC_NETRUSEENUM()api_WKSSVC_NETRUSEGETINFO()api_WKSSVC_NETRVALIDATENAME()api_WKSSVC_NETRVALIDATENAME2()api_WKSSVC_NETRWKSTATRANSPORTADD()api_WKSSVC_NETRWKSTATRANSPORTDEL()api_WKSSVC_NETRWKSTAUSERGETINFO()api_WKSSVC_NETRWKSTAUSERSETINFO()api_WKSSVC_NETRWORKSTATIONSTATISTICSGET()api_wkssvc_NetWkstaEnumUsers()api_wkssvc_NetWkstaGetInfo()api_wkssvc_NetWkstaSetInfo()api_wkssvc_NetWkstaTransportEnum()asyncdns_process()brl_get_locks_internal()cac_Init()cmd_debuglevel()cmd_sign()debug_add_class()debug_list_class_names_and_levels()exit_server_common()fill_grent_mem()get_dc_list()get_debuglevel()get_key_from_keytab()init_registry()initlsa()initsamr()initsmb()internal_resolve_name()local_password_change()main()namecache_store()net_copy_fileattr()notify_load()notify_save()nss_wins_init()nt_printing_getsec()parse_mount_smb()print_socket_options()printer_driver_files_in_use()process_options()prs_dump_region()rpc_api_pipe_req()rpccli_wkssvc_NetrAddAlternateComputerName()rpccli_WKSSVC_NETRENUMERATECOMPUTERNAMES()rpccli_WKSSVC_NETRGETJOINABLEOUS()rpccli_WKSSVC_NETRGETJOINABLEOUS2()rpccli_WKSSVC_NETRGETJOININFORMATION()rpccli_WKSSVC_NETRJOINDOMAIN()rpccli_wkssvc_NetrJoinDomain2()rpccli_WKSSVC_NETRLOGONDOMAINNAMEADD()rpccli_WKSSVC_NETRLOGONDOMAINNAMEDEL()rpccli_WKSSVC_NETRMESSAGEBUFFERSEND()rpccli_wkssvc_NetrRemoveAlternateComputerName()rpccli_WKSSVC_NETRRENAMEMACHINEINDOMAIN()rpccli_wkssvc_NetrRenameMachineInDomain2()rpccli_WKSSVC_NETRSETPRIMARYCOMPUTERNAME()rpccli_WKSSVC_NETRUNJOINDOMAIN()rpccli_wkssvc_NetrUnjoinDomain2()rpccli_WKSSVC_NETRUSEADD()rpccli_WKSSVC_NETRUSEDEL()rpccli_WKSSVC_NETRUSEENUM()rpccli_WKSSVC_NETRUSEGETINFO()rpccli_WKSSVC_NETRVALIDATENAME()rpccli_WKSSVC_NETRVALIDATENAME2()rpccli_WKSSVC_NETRWKSTATRANSPORTADD()rpccli_WKSSVC_NETRWKSTATRANSPORTDEL()rpccli_WKSSVC_NETRWKSTAUSERGETINFO()rpccli_WKSSVC_NETRWKSTAUSERSETINFO()rpccli_WKSSVC_NETRWORKSTATIONSTATISTICSGET()rpccli_wkssvc_NetWkstaEnumUsers()rpccli_wkssvc_NetWkstaGetInfo()rpccli_wkssvc_NetWkstaSetInfo()rpccli_wkssvc_NetWkstaTransportEnum()set_debuglevel()show_msg()smb_dos_errstr()smb_dump()smbc_init_context()update_printer_sec()winbindd_status().

int* DEBUGLEVEL_CLASS

debug.c102 行で定義されています。

参照元 debug_add_class()debug_dump_status()debug_list_class_names_and_levels()debug_parse_params()gfree_debugsyms()main()parse_quota_set().

BOOL* DEBUGLEVEL_CLASS_ISSET

debug.c103 行で定義されています。

参照元 debug_add_class()debug_dump_status()debug_list_class_names_and_levels()debug_parse_params()gfree_debugsyms().


Sambaに対してSat Aug 29 21:23:34 2009に生成されました。  doxygen 1.4.7