mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 12:48:03 +02:00
debug: add wp_critical* macros
This commit is contained in:
parent
738b88aaba
commit
70214fcd26
1 changed files with 6 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ void wp_log_structured_standard (const gchar *log_domain,
|
|||
G_STRINGIFY (__LINE__), G_STRFUNC, type, object, __VA_ARGS__); \
|
||||
})
|
||||
|
||||
#define wp_critical(...) \
|
||||
wp_log (G_LOG_LEVEL_CRITICAL, 0, NULL, __VA_ARGS__)
|
||||
#define wp_warning(...) \
|
||||
wp_log (G_LOG_LEVEL_WARNING, 0, NULL, __VA_ARGS__)
|
||||
#define wp_message(...) \
|
||||
|
|
@ -50,6 +52,8 @@ void wp_log_structured_standard (const gchar *log_domain,
|
|||
#define wp_trace(...) \
|
||||
wp_log (WP_LOG_LEVEL_TRACE, 0, NULL, __VA_ARGS__)
|
||||
|
||||
#define wp_critical_object(object, ...) \
|
||||
wp_log (G_LOG_LEVEL_CRITICAL, G_TYPE_FROM_INSTANCE (object), object, __VA_ARGS__)
|
||||
#define wp_warning_object(object, ...) \
|
||||
wp_log (G_LOG_LEVEL_WARNING, G_TYPE_FROM_INSTANCE (object), object, __VA_ARGS__)
|
||||
#define wp_message_object(object, ...) \
|
||||
|
|
@ -61,6 +65,8 @@ void wp_log_structured_standard (const gchar *log_domain,
|
|||
#define wp_trace_object(object, ...) \
|
||||
wp_log (WP_LOG_LEVEL_TRACE, G_TYPE_FROM_INSTANCE (object), object, __VA_ARGS__)
|
||||
|
||||
#define wp_critical_boxed(type, object, ...) \
|
||||
wp_log (G_LOG_LEVEL_CRITICAL, type, object, __VA_ARGS__)
|
||||
#define wp_warning_boxed(type, object, ...) \
|
||||
wp_log (G_LOG_LEVEL_WARNING, type, object, __VA_ARGS__)
|
||||
#define wp_message_boxed(type, object, ...) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue