Print more info when demarshal fails
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 29 Jul 2010 03:47:16 +0000 (23:47 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 29 Jul 2010 03:51:05 +0000 (23:51 -0400)
connection.c

index 264c6ab..577e83c 100644 (file)
@@ -344,7 +344,8 @@ wl_connection_demarshal(struct wl_connection *connection,
                        types[i] = &ffi_type_pointer;
                        object = wl_hash_table_lookup(objects, *p);
                        if (object == NULL && *p != 0)
-                               printf("unknown object (%d)\n", *p);
+                               printf("unknown object (%d), message %s(%s)\n",
+                                      *p, message->name, message->signature);
                        values[i].object = object;
                        p++;
                        break;