dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions
Error message reporting
Collaboration diagram for Error message reporting:

Data Structures

struct  dpkg_error
 

Macros

#define DPKG_ERROR_INIT   { DPKG_MSG_NONE, 0, NULL }
 
#define DPKG_ERROR_OBJECT   (struct dpkg_error)DPKG_ERROR_INIT
 

Enumerations

enum  dpkg_msg_type { DPKG_MSG_NONE , DPKG_MSG_WARN , DPKG_MSG_ERROR }
 

Functions

bool dpkg_has_error (struct dpkg_error *err)
 
int dpkg_put_warn (struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 
int dpkg_put_error (struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 
int dpkg_put_errno (struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 
void dpkg_error_print (struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 
void dpkg_error_move (struct dpkg_error *dst, struct dpkg_error *src)
 
void dpkg_error_destroy (struct dpkg_error *err)
 

Detailed Description

Macro Definition Documentation

◆ DPKG_ERROR_INIT

#define DPKG_ERROR_INIT   { DPKG_MSG_NONE, 0, NULL }

◆ DPKG_ERROR_OBJECT

#define DPKG_ERROR_OBJECT   (struct dpkg_error)DPKG_ERROR_INIT

Enumeration Type Documentation

◆ dpkg_msg_type

Enumerator
DPKG_MSG_NONE 
DPKG_MSG_WARN 
DPKG_MSG_ERROR 

Function Documentation

◆ dpkg_error_destroy()

void dpkg_error_destroy ( struct dpkg_error err)

References DPKG_MSG_NONE, str, syserrno, and type.

Referenced by cmpversions(), parse_db_version(), parsedb_close(), tar_extractor(), and validate_version().

Here is the caller graph for this function:

◆ dpkg_error_move()

void dpkg_error_move ( struct dpkg_error dst,
struct dpkg_error src 
)

References DPKG_MSG_NONE, str, and type.

◆ dpkg_error_print()

void dpkg_error_print ( struct dpkg_error err,
const char *  fmt,
  ... 
)

References args, DPKG_MSG_WARN, m_vasprintf(), ohshit(), str, type, and warning().

Referenced by cmpversions(), ensure_packagefiles_available(), parse_filehash(), process_archive(), and validate_version().

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

◆ dpkg_has_error()

bool dpkg_has_error ( struct dpkg_error err)

References DPKG_MSG_NONE, and type.

Referenced by f_boolean(), f_multiarch(), f_priority(), and f_status().

Here is the caller graph for this function:

◆ dpkg_put_errno()

int dpkg_put_errno ( struct dpkg_error err,
const char *  fmt,
  ... 
)

References args, and DPKG_MSG_ERROR.

Referenced by file_slurp().

Here is the caller graph for this function:

◆ dpkg_put_error()

int dpkg_put_error ( struct dpkg_error err,
const char *  fmt,
  ... 
)

References args, and DPKG_MSG_ERROR.

Referenced by compressor_check_params(), parseversion(), pkg_format_parse(), pkg_spec_find_pkg(), pkg_spec_parse_pkg(), and tar_extractor().

Here is the caller graph for this function:

◆ dpkg_put_warn()

int dpkg_put_warn ( struct dpkg_error err,
const char *  fmt,
  ... 
)

References args, and DPKG_MSG_WARN.

Referenced by parseversion().

Here is the caller graph for this function: