dpkg 1.21.11
Enumerations | Functions
Collaboration diagram for Debugging:

Enumerations

enum  debugflags {
  dbg_general = 01 , dbg_scripts = 02 , dbg_eachfile = 010 , dbg_eachfiledetail = 0100 ,
  dbg_conff = 020 , dbg_conffdetail = 0200 , dbg_depcon = 040 , dbg_depcondetail = 0400 ,
  dbg_veryverbose = 01000 , dbg_stupidlyverbose = 02000 , dbg_triggers = 010000 , dbg_triggersdetail = 020000 ,
  dbg_triggersstupid = 040000
}
 

Functions

void dpkg_debug_init (void)
 Initialize the debugging support. More...
 
void debug_set_output (FILE *output, const char *filename)
 Set the debugging output file. More...
 
void debug_set_mask (int mask)
 Set the debugging mask. More...
 
int debug_parse_mask (const char *str)
 Parse the debugging mask. More...
 
bool debug_has_flag (int flag)
 Check if a debugging flag is currently set on the debugging mask. More...
 
void debug (int flag, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 Output a debugging message. More...
 

Detailed Description

Enumeration Type Documentation

◆ debugflags

enum debugflags
Enumerator
dbg_general 
dbg_scripts 
dbg_eachfile 
dbg_eachfiledetail 
dbg_conff 
dbg_conffdetail 
dbg_depcon 
dbg_depcondetail 
dbg_veryverbose 
dbg_stupidlyverbose 
dbg_triggers 
dbg_triggersdetail 
dbg_triggersstupid 

Function Documentation

◆ debug()

void debug ( int  flag,
const char *  fmt,
  ... 
)

Output a debugging message.

The message will be printed to the previously specified output if the specified flag is present in the current debugging mask.

References args, and debug_has_flag().

Referenced by breakses_ok(), cmpversions(), conffderef(), conffile_mark_obsolete(), cu_installnew(), deferred_configure(), deferred_remove(), dir_has_conffiles(), dir_is_used_by_others(), dir_is_used_by_pkg(), filesavespackage(), filter_add(), maintscript_fallback(), maintscript_new(), namenodetouse(), path_remove_tree(), pkg_conffiles_mark_old(), post_postinst_tasks(), removal_bulk(), secure_remove(), setupfnamevbs(), tarobject(), trig_activate_packageprocessing(), trigproc(), trigproc_run_deferred(), and write_filehash_except().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ debug_has_flag()

bool debug_has_flag ( int  flag)

Check if a debugging flag is currently set on the debugging mask.

Referenced by debug().

Here is the caller graph for this function:

◆ debug_parse_mask()

int debug_parse_mask ( const char *  str)

Parse the debugging mask.

The mask is parsed from the specified string and sets the global debugging mask. If there is any error while parsing a negative number is returned.

References debug_set_mask().

Referenced by dpkg_debug_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ debug_set_mask()

void debug_set_mask ( int  mask)

Set the debugging mask.

The mask determines what debugging flags are going to take effect at run-time. The output will be set to stderr if it has not been set before.

Referenced by debug_parse_mask().

Here is the caller graph for this function:

◆ debug_set_output()

void debug_set_output ( FILE *  output,
const char *  filename 
)

Set the debugging output file.

Marks the file descriptor as close-on-exec.

References dpkg_set_report_buffer(), and setcloexec().

Here is the call graph for this function:

◆ dpkg_debug_init()

void dpkg_debug_init ( void  )

Initialize the debugging support.

References _, debug_parse_mask(), and warning().

Here is the call graph for this function: