log-helpers: add helper to log simple connect properties

This commit is contained in:
Aleksander Morgado
2022-09-13 13:52:33 +00:00
parent f509e68fa3
commit e7b225ab9a
2 changed files with 27 additions and 8 deletions

View File

@@ -30,6 +30,21 @@ common_log_print_array (gpointer log_object,
}
}
void
mm_log_simple_connect_properties (gpointer log_object,
MMLogLevel level,
const gchar *prefix,
MMSimpleConnectProperties *value)
{
g_autoptr(GPtrArray) print_array = NULL;
if (!mm_log_check_level_enabled (level))
return;
print_array = mm_simple_connect_properties_print (value, mm_log_get_show_personal_info ());
common_log_print_array (log_object, level, prefix, print_array);
}
void
mm_log_bearer_properties (gpointer log_object,
MMLogLevel level,

View File

@@ -22,6 +22,10 @@
#include "mm-log.h"
void mm_log_simple_connect_properties (gpointer log_object,
MMLogLevel level,
const gchar *prefix,
MMSimpleConnectProperties *value);
void mm_log_bearer_properties (gpointer log_object,
MMLogLevel level,
const gchar *prefix,