Print more info when demarshal fails

dev
Kristian Høgsberg 15 years ago
parent 379b678c57
commit c098d8da47
  1. 3
      connection.c

@ -344,7 +344,8 @@ wl_connection_demarshal(struct wl_connection *connection,
types[i] = &ffi_type_pointer; types[i] = &ffi_type_pointer;
object = wl_hash_table_lookup(objects, *p); object = wl_hash_table_lookup(objects, *p);
if (object == NULL && *p != 0) 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; values[i].object = object;
p++; p++;
break; break;

Loading…
Cancel
Save