[glib] GDBusMessage: print more debug info about alignment



commit e28d3ef92197eb2e2a6a3a5627dcfaf475021e7e
Author: Will Thompson <will thompson collabora co uk>
Date:   Tue Apr 10 12:58:52 2012 +0100

    GDBusMessage: print more debug info about alignment
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 gio/gdbusmessage.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
index 01dc3c3..d29f100 100644
--- a/gio/gdbusmessage.c
+++ b/gio/gdbusmessage.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]