log-helpers: add helper to log simple connect properties
This commit is contained in:
@@ -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
|
void
|
||||||
mm_log_bearer_properties (gpointer log_object,
|
mm_log_bearer_properties (gpointer log_object,
|
||||||
MMLogLevel level,
|
MMLogLevel level,
|
||||||
|
@@ -22,6 +22,10 @@
|
|||||||
|
|
||||||
#include "mm-log.h"
|
#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,
|
void mm_log_bearer_properties (gpointer log_object,
|
||||||
MMLogLevel level,
|
MMLogLevel level,
|
||||||
const gchar *prefix,
|
const gchar *prefix,
|
||||||
|
Reference in New Issue
Block a user