Back to index

libunity  5.92.0
unity-trace.c File Reference
#include <glib-object.h>
#include "unity-trace.h"

Go to the source code of this file.


void unity_trace_log_object_va (void *obj, const gchar *format, va_list args)
void unity_trace_log_object_real (void *obj, const gchar *format,...)

Function Documentation

void unity_trace_log_object_real ( void *  obj,
const gchar *  format,

Definition at line 45 of file unity-trace.c.

  va_list args;
  va_start (args, format);
  unity_trace_log_object_va (obj, format, args);
  va_end (args);

Here is the call graph for this function:

void unity_trace_log_object_va ( void *  obj,
const gchar *  format,
va_list  args 

Definition at line 25 of file unity-trace.c.

  GString   *tmp;

  if (!G_IS_OBJECT(obj)) {
    g_critical ("Failed to log '%s' for object. Not an object.", format);

  tmp = g_string_sized_new (64);
  g_string_printf (tmp, "(%s@%p): ", g_type_name(G_OBJECT_TYPE(obj)), obj);
  g_string_append (tmp, format);
  g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, tmp->str, args);

  g_string_free (tmp, TRUE);

Here is the caller graph for this function: