diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-07-23 19:54:42 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-07-23 20:17:10 -0400 |
commit | 3ec40512c7e43c5e5a223a9d33e4737a0782916a (patch) | |
tree | a3a6638742215336f1889a2205c0abeeee0bd3bc /src/wayland-client.c | |
parent | db0add6d5e23deac53c834f73d5e56180600cead (diff) |
More consistent ID printing
Use unsigned rather than signed for IDs, so they match up with what we
see in other prints.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/wayland-client.c')
-rw-r--r-- | src/wayland-client.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c index 7130cb7..631ec5a 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -203,14 +203,14 @@ wl_proxy_marshal(struct wl_proxy *proxy, uint32_t opcode, ...) abort(); } + if (wl_debug) + wl_closure_print(closure, &proxy->object, true); + if (wl_closure_send(closure, proxy->display->connection)) { fprintf(stderr, "Error sending request: %m\n"); abort(); } - if (wl_debug) - wl_closure_print(closure, &proxy->object, true); - wl_closure_destroy(closure); } @@ -235,7 +235,7 @@ display_handle_error(void *data, struct wl_display *display, struct wl_object *object, uint32_t code, const char *message) { - fprintf(stderr, "%s@%d: error %d: %s\n", + fprintf(stderr, "%s@%u: error %d: %s\n", object->interface->name, object->id, code, message); abort(); } @@ -531,14 +531,14 @@ handle_event(struct wl_display *display, closure = wl_connection_demarshal(display->connection, size, &display->objects, message); + if (wl_debug) + wl_closure_print(closure, &proxy->object, false); + if (closure == NULL || create_proxies(display, closure) < 0) { fprintf(stderr, "Error demarshalling event\n"); abort(); } - if (wl_debug) - wl_closure_print(closure, &proxy->object, false); - wl_closure_invoke(closure, &proxy->object, proxy->object.implementation[opcode], proxy->user_data); |