[glib/glib-2-30] GDBusMessage: print more debug info about alignment



commit 1c7b798635beb3da3256f7109ec5a6a81b7b3573
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 82860f4..95ff709 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]