dpkg 1.22.7-3-g89f48
|
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 |
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().
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().
Referenced by dpkg_program_init().
enum DPKG_ATTR_ENUM_FLAGS debugflags |