summaryrefslogtreecommitdiff
path: root/telepathy-glib/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'telepathy-glib/debug.c')
-rw-r--r--telepathy-glib/debug.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/telepathy-glib/debug.c b/telepathy-glib/debug.c
index f8ffc66da..efc902a18 100644
--- a/telepathy-glib/debug.c
+++ b/telepathy-glib/debug.c
@@ -146,8 +146,8 @@ static DebugKeyToDomain key_to_domain[] = {
/**
* tp_debug_set_flags:
- * @flags_string: The flags to set, comma-separated. If %NULL or empty,
- * no additional flags are set.
+ * @flags_string: (nullable): The flags to set, comma-separated. If %NULL or
+ * empty, no additional flags are set.
*
* Set the debug flags indicated by @flags_string, in addition to any already
* set.
@@ -345,7 +345,7 @@ tp_debug_divert_messages (const gchar *filename)
* @log_domain: the message's log domain
* @log_level: the log level of the message
* @message: the message to process
- * @ignored: not used
+ * @ignored: (nullable): not used
*
* A #GLogFunc that prepends the UTC time (currently in ISO 8601 format,
* with microsecond resolution) to the message, then calls
@@ -375,6 +375,9 @@ tp_debug_timestamped_log_handler (const gchar *log_domain,
GTimeVal now;
gchar *tmp, *now_str;
+ g_return_if_fail (log_domain != NULL);
+ g_return_if_fail (message != NULL);
+
g_get_current_time (&now);
now_str = g_time_val_to_iso8601 (&now);
tmp = g_strdup_printf ("%s: %s", now_str, message);