dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions | Variables
Collaboration diagram for Debugging:

Functions

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

Variables

enum DPKG_ATTR_ENUM_FLAGS debugflags
 

Detailed Description

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(), dependencies_ok(), dir_has_conffiles(), dir_is_used_by_others(), dir_is_used_by_pkg(), dpkg_db_reopen(), filesavespackage(), filter_add(), filter_should_skip(), main(), main(), maintscript_fallback(), maintscript_new(), namenodetouse(), path_remove_tree(), pkg_conffiles_mark_old(), pkg_infodb_foreach(), post_postinst_tasks(), process_archive(), process_queue(), removal_bulk(), secure_remove(), setupfnamevbs(), tar_deferred_extract(), 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().

Referenced by dpkg_program_init().

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

Variable Documentation

◆ debugflags

enum DPKG_ATTR_ENUM_FLAGS debugflags