dpkg 1.21.11
|
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... | |
enum debugflags |
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().
bool debug_has_flag | ( | int | flag | ) |
Check if a debugging flag is currently set on the debugging mask.
Referenced by debug().
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().
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().
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().
void dpkg_debug_init | ( | void | ) |
Initialize the debugging support.
References _, debug_parse_mask(), and warning().