mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 00:42:13 +00:00
test: improve logging helpers
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
4e29ef3cf0
commit
2c7c983bee
@ -32,12 +32,12 @@
|
|||||||
|
|
||||||
#define lxc_debug_stream(stream, format, ...) \
|
#define lxc_debug_stream(stream, format, ...) \
|
||||||
do { \
|
do { \
|
||||||
fprintf(stream, "%s: %d: %s: " format "\n", __FILE__, __LINE__, \
|
fprintf(stream, "%s: %d: %s: " format "\n", __FILE__, \
|
||||||
__func__, __VA_ARGS__); \
|
__LINE__, __func__, ##__VA_ARGS__); \
|
||||||
} while (false)
|
} while (false)
|
||||||
|
|
||||||
#define lxc_error(format, ...) lxc_debug_stream(stderr, format, __VA_ARGS__)
|
#define lxc_error(format, ...) lxc_debug_stream(stderr, format, ##__VA_ARGS__)
|
||||||
#define lxc_debug(format, ...) lxc_debug_stream(stdout, format, __VA_ARGS__)
|
#define lxc_debug(format, ...) lxc_debug_stream(stdout, format, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define lxc_test_assert_stringify(expression, stringify_expression) \
|
#define lxc_test_assert_stringify(expression, stringify_expression) \
|
||||||
do { \
|
do { \
|
||||||
|
Loading…
Reference in New Issue
Block a user