aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-10-11 17:08:29 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-10-11 17:08:29 -0400
commit9272fb8f5c4480920e0e9448cebe3de9df898dc6 (patch)
tree2629a72bed74cf6b948def61e05e8352e95395e3 /src
parentclient: Fix double locking bug (diff)
downloadwayland-9272fb8f5c4480920e0e9448cebe3de9df898dc6.tar
wayland-9272fb8f5c4480920e0e9448cebe3de9df898dc6.tar.gz
wayland-9272fb8f5c4480920e0e9448cebe3de9df898dc6.tar.bz2
wayland-9272fb8f5c4480920e0e9448cebe3de9df898dc6.tar.lz
wayland-9272fb8f5c4480920e0e9448cebe3de9df898dc6.tar.xz
wayland-9272fb8f5c4480920e0e9448cebe3de9df898dc6.tar.zst
wayland-9272fb8f5c4480920e0e9448cebe3de9df898dc6.zip
connection: Print object id for new-id arguments in deubug output
We can't use the same behaviour in both the client and the server. In the client this is a wl_proxy pointer in the server it's a pointer to the uint32_t object id. This doesn't fix the problem, but it's a slightly more useful default, since we typically use WAYLAND_DEBUG on the client.
Diffstat (limited to 'src')
-rw-r--r--src/connection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/connection.c b/src/connection.c
index f86a892..8497670 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -989,8 +989,7 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target, int send)
if (send && value->new_id != 0)
fprintf(stderr, "%u", value->new_id);
else if (!send && value->object != NULL)
- fprintf(stderr, "%u",
- *((uint32_t *)value->object));
+ fprintf(stderr, "%u", value->object->id);
else
fprintf(stderr, "nil");
break;