mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-01 10:27:58 +02:00
debug: handle null objects in WP_OBJECT_ARGS
This commit is contained in:
parent
52b52ea63c
commit
7377d15f42
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ G_BEGIN_DECLS
|
|||
#define WP_LOG_LEVEL_TRACE (1 << G_LOG_LEVEL_USER_SHIFT)
|
||||
|
||||
#define WP_OBJECT_FORMAT "<%s:%p>"
|
||||
#define WP_OBJECT_ARGS(object) G_OBJECT_TYPE_NAME(object), object
|
||||
#define WP_OBJECT_ARGS(object) \
|
||||
(object ? G_OBJECT_TYPE_NAME(object) : "invalid"), object
|
||||
|
||||
WP_API
|
||||
gboolean wp_log_level_is_enabled (GLogLevelFlags log_level) G_GNUC_CONST;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue