GDBusMessage: print more debug info about alignment
authorWill Thompson <will.thompson@collabora.co.uk>
Tue, 10 Apr 2012 11:58:52 +0000 (12:58 +0100)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 10 Apr 2012 20:39:45 +0000 (16:39 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusmessage.c

index 01dc3c3..d29f100 100644 (file)
@@ -1066,12 +1066,12 @@ parse_value_from_blob (GMemoryInputStream    *mis,
   type_string = g_variant_type_peek_string (type);
 
 #ifdef DEBUG_SERIALIZER
-  if (!just_align)
     {
       gchar *s;
       s = g_variant_type_dup_string (type);
-      g_print ("%*sReading type %s from offset 0x%04x",
+      g_print ("%*s%s type %s from offset 0x%04x",
                indent, "",
+               just_align ? "Aligning" : "Reading",
                s,
                (gint) g_seekable_tell (G_SEEKABLE (mis)));
       g_free (s);