Data Structures | |
struct | error_record |
struct error_record More... | |
Macros | |
#define | EREC_MSGBUFSIZE 1024 |
#define | EREC_LOCATIONS_MAX 3 |
#define | error(loc, fmt, args...) erec_create(EREC_ERROR, (loc), (fmt), ## args) |
#define | warning(loc, fmt, args...) erec_create(EREC_WARNING, (loc), (fmt), ## args) |
Enumerations | |
enum | error_record_types { EREC_INFORMATIONAL, EREC_WARNING, EREC_ERROR } |
enum error_record_types More... | |
Functions | |
struct error_record * | erec_vcreate (enum error_record_types type, const struct location *loc, const char *fmt, va_list ap) __gmp_fmtstring(3 |
struct error_record struct error_record * | erec_create (enum error_record_types type, const struct location *loc, const char *fmt,...) __gmp_fmtstring(3 |
struct error_record struct error_record void | erec_add_location (struct error_record *erec, const struct location *loc) |
void | erec_print (FILE *f, const struct error_record *erec) |
void | erec_print_list (FILE *f, struct list_head *list) |
#define EREC_LOCATIONS_MAX 3 |
Referenced by erec_add_location().
#define EREC_MSGBUFSIZE 1024 |
#define error | ( | loc, | |
fmt, | |||
args... | |||
) | erec_create(EREC_ERROR, (loc), (fmt), ## args) |
#define warning | ( | loc, | |
fmt, | |||
args... | |||
) | erec_create(EREC_WARNING, (loc), (fmt), ## args) |
enum error_record_types |
struct error_record struct error_record void erec_add_location | ( | struct error_record * | erec, |
const struct location * | loc | ||
) |
References EREC_LOCATIONS_MAX, error_record::locations, and error_record::num_locations.
Referenced by __attribute__(), and __fmtstring().
struct error_record struct error_record* erec_create | ( | enum error_record_types | type, |
const struct location * | loc, | ||
const char * | fmt, | ||
... | |||
) |
void erec_print | ( | FILE * | f, |
const struct error_record * | erec | ||
) |
References buf, BUG, input_descriptor::data, input_descriptor::fd, location::first_column, location::first_line, location::indesc, INDESC_BUFFER, INDESC_CLI, INDESC_FILE, INDESC_INTERNAL, INDESC_NETLINK, location::last_column, line, location::line_offset, input_descriptor::location, error_record::locations, max, error_record::msg, input_descriptor::name, netlink_dump_expr(), location::nle, NULL, error_record::num_locations, input_descriptor::type, and error_record::type.
Referenced by cmd_evaluate(), erec_print_list(), and stmt_evaluate().
References erec_print(), error_record::list, and list_for_each_entry_safe.
Referenced by main().
struct error_record* erec_vcreate | ( | enum error_record_types | type, |
const struct location * | loc, | ||
const char * | fmt, | ||
va_list | ap | ||
) |
Referenced by __attribute__(), __fmtstring(), and netlink_io_error().