![]() |
XBPS Library API 20250813
The X Binary Package System
|
Macros | |
#define | xbps_error_oom() |
Log out of memory condition. |
Functions | |
void | xbps_dbg_printf (const char *fmt,...) |
Prints debug messages to stderr. | |
void | xbps_dbg_printf_append (const char *fmt,...) |
Prints debug messages to stderr. | |
void | xbps_verbose_printf (const char *,...) |
Prints messages to stderr if verbosity is enabled. | |
void | xbps_error_printf (const char *fmt,...) |
Prints error messages to stderr. | |
void | xbps_warn_printf (const char *fmt,...) |
Prints warning messages to stderr. | |
int | xbps_error_errno (int r, const char *fmt,...) |
Prints formatted log message to stderr and returns error. |
Variables | |
int | xbps_debug_level |
The Debug level. |
Use these functions to log errors, warnings and debug messages.
#define xbps_error_oom | ( | ) |
Definition at line 776 of file xbps.h.
Referenced by xbps_array_foreach_cb_multi(), and xbps_pkgdb_foreach_cb_multi().
void xbps_dbg_printf | ( | const char * | fmt, |
... ) |
[in] | fmt | format specifier for the message. |
Definition at line 67 of file log.c.
References xbps_debug_level.
Referenced by xbps_configure_packages(), xbps_configure_pkg(), xbps_fetch_file_dest_sha256(), xbps_find_pkg_orphans(), xbps_init(), xbps_pkg_exec_buffer(), xbps_plist_array_from_file(), xbps_plist_dictionary_from_file(), xbps_pubkey2fp(), xbps_repo_get_pkg(), xbps_repo_get_virtualpkg(), xbps_repo_key_import(), xbps_repo_remove(), xbps_repo_store(), xbps_rpool_foreach(), xbps_transaction_commit(), xbps_transaction_install_pkg(), xbps_transaction_prepare(), xbps_transaction_update_packages(), xbps_transaction_update_pkg(), xbps_verify_file_signature(), and xbps_verify_signature().
void xbps_dbg_printf_append | ( | const char * | fmt, |
... ) |
[in] | fmt | format specifier for the message. |
Definition at line 54 of file log.c.
References xbps_debug_level.
void xbps_verbose_printf | ( | const char * | fmt, |
... ) |
void xbps_error_printf | ( | const char * | fmt, |
... ) |
[in] | fmt | format specifier for the message. |
Definition at line 93 of file log.c.
Referenced by xbps_archive_fetch_file_into_fd(), xbps_array_foreach_cb_multi(), xbps_pkgdb_update(), and xbps_repo_open().
void xbps_warn_printf | ( | const char * | fmt, |
... ) |
[in] | fmt | format specifier for the message. |
Definition at line 103 of file log.c.
Referenced by xbps_pkgdb_lock(), and xbps_repo_lock().
int xbps_error_errno | ( | int | r, |
const char * | fmt, | ||
... ) |
[in] | r | errno to be returned. |
[in] | fmt | format specifier for the error message. |
Definition at line 113 of file log.c.
Referenced by xbps_pkgdb_lock().