#include "support/dlb_common.h"
#include "support/options.h"
#include "support/types.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
Go to the source code of this file.
|
| void | debug_init (const options_t *options) |
| |
| void | fatal (const char *fmt,...) __attribute__((format(printf |
| |
| void | fatal0 (const char *fmt,...) __attribute__((format(printf |
| |
| void | warning (const char *fmt,...) __attribute__((format(printf |
| |
| void void | warning0 (const char *fmt,...) __attribute__((format(printf |
| |
| void void void | info (const char *fmt,...) __attribute__((format(printf |
| |
| void void void void | info0 (const char *fmt,...) __attribute__((format(printf |
| |
| void void void void void | info0_force_print (const char *fmt,...) __attribute__((format(printf |
| |
| void void void void void void | verbose (verbose_opts_t flag, const char *fmt,...) __attribute__((format(printf |
| |
| void void void void void void void | verbose0 (verbose_opts_t flag, const char *fmt,...) __attribute__((format(printf |
| |
| void void void void void void void void | print_backtrace (void) |
| |
| void | dlb_clean (void) |
| |
| void | warn_error (int error) |
| |
| void | printbuffer_init (print_buffer_t *buffer) |
| |
| void | printbuffer_destroy (print_buffer_t *buffer) |
| |
| void | printbuffer_append (print_buffer_t *buffer, const char *line) |
| |
| void | printbuffer_append_no_newline (print_buffer_t *buffer, const char *text) |
| |
◆ fatal_cond
| #define fatal_cond |
( |
|
cond, |
|
|
|
... |
|
) |
| |
Value: do { \
} while(0)
void fatal(const char *fmt,...) __attribute__((format(printf
#define unlikely(expr)
Definition: dlb_common.h:29
◆ fatal_cond0
| #define fatal_cond0 |
( |
|
cond, |
|
|
|
... |
|
) |
| |
Value: do { \
} while(0)
void fatal0(const char *fmt,...) __attribute__((format(printf
◆ fatal_cond_strerror
| #define fatal_cond_strerror |
( |
|
cond | ) |
|
Value: do { \
int _error = cond; \
} while(0)
◆ verbose
| #define verbose |
( |
|
flag, |
|
|
|
... |
|
) |
| |
Value: do { \
} while(0)
#define verbose(flag,...)
Definition: debug.h:73
verbose_opts_t vb_opts
Definition: debug.c:56
@ VB_CLEAR
Definition: types.h:42
◆ verbose0
| #define verbose0 |
( |
|
flag, |
|
|
|
... |
|
) |
| |
Value: do { \
} while(0)
#define verbose0(flag,...)
Definition: debug.h:78
◆ DLB_DEBUG
| #define DLB_DEBUG |
( |
|
stmt | ) |
do { (void)0; } while(0) |
◆ debug_warning
| #define debug_warning |
( |
|
... | ) |
do { (void)0; } while(0) |
◆ ensure
| #define ensure |
( |
|
cond, |
|
|
|
... |
|
) |
| do { (void)0; } while(0) |
◆ static_ensure
| #define static_ensure |
( |
|
cond, |
|
|
|
... |
|
) |
| do { (void)0; } while(0) |
◆ ANSI_COLOR_RED
| #define ANSI_COLOR_RED "\x1b[31m" |
◆ ANSI_COLOR_GREEN
| #define ANSI_COLOR_GREEN "\x1b[32m" |
◆ ANSI_COLOR_YELLOW
| #define ANSI_COLOR_YELLOW "\x1b[33m" |
◆ ANSI_COLOR_BLUE
| #define ANSI_COLOR_BLUE "\x1b[34m" |
◆ ANSI_COLOR_MAGENTA
| #define ANSI_COLOR_MAGENTA "\x1b[35m" |
◆ ANSI_COLOR_CYAN
| #define ANSI_COLOR_CYAN "\x1b[36m" |
◆ ANSI_COLOR_RESET
| #define ANSI_COLOR_RESET "\x1b[0m" |
◆ debug_init()
◆ fatal()
| void fatal |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ fatal0()
| void fatal0 |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ warning()
| void warning |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ warning0()
| void void warning0 |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ info()
| void void void info |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ info0()
| void void void void info0 |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ info0_force_print()
| void void void void void info0_force_print |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ verbose()
| void void void void void void verbose |
( |
verbose_opts_t |
flag, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ verbose0()
| void void void void void void void verbose0 |
( |
verbose_opts_t |
flag, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ print_backtrace()
| void void void void void void void void print_backtrace |
( |
void |
| ) |
|
◆ dlb_clean()
◆ warn_error()
| void warn_error |
( |
int |
error | ) |
|
◆ printbuffer_init()
◆ printbuffer_destroy()
◆ printbuffer_append()
| void printbuffer_append |
( |
print_buffer_t * |
buffer, |
|
|
const char * |
line |
|
) |
| |
◆ printbuffer_append_no_newline()
| void printbuffer_append_no_newline |
( |
print_buffer_t * |
buffer, |
|
|
const char * |
text |
|
) |
| |
◆ __noreturn__
◆ vb_opts