aboutsummaryrefslogtreecommitdiff
path: root/xwayland/selection
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2018-04-26 08:40:18 +0000
committerGuido Günther <agx@sigxcpu.org>2018-04-26 10:46:11 +0200
commit085452f9d9bd0ce95ebf2beba91c3d62ab3fd97f (patch)
tree000da627400c1c11da9e432a22795a58976d0f2d /xwayland/selection
parenta6790d45b2b25f38754403fe692ee9304aefc5fc (diff)
Use correct printf format specifiers for ssize_t
This unbreaks the build on armhf that otherwise fails like ../xwayland/selection/incoming.c: In function 'xwm_data_source_write': ../include/wlr/util/log.h:34:17: error: format '%ld' expects argument of type 'long int', but argument 6 has type 'ssize_t {aka int}' [-Werror=format=] _wlr_log(verb, "[%s:%d] " fmt, wlr_strip_path(__FILE__), __LINE__, ##__VA_ARGS__) ^ ../xwayland/selection/incoming.c:34:2: note: in expansion of macro 'wlr_log' wlr_log(L_DEBUG, "wrote %zd (chunk size %ld) of %d bytes", ^~~~~~~ ../xwayland/selection/incoming.c:34:44: note: format string is defined here wlr_log(L_DEBUG, "wrote %zd (chunk size %ld) of %d bytes", ~~^ %d
Diffstat (limited to 'xwayland/selection')
-rw-r--r--xwayland/selection/incoming.c2
-rw-r--r--xwayland/selection/outgoing.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/xwayland/selection/incoming.c b/xwayland/selection/incoming.c
index ab06f40d..b2df3b53 100644
--- a/xwayland/selection/incoming.c
+++ b/xwayland/selection/incoming.c
@@ -31,7 +31,7 @@ static int xwm_data_source_write(int fd, uint32_t mask, void *data) {
return 1;
}
- wlr_log(L_DEBUG, "wrote %ld (chunk size %ld) of %d bytes",
+ wlr_log(L_DEBUG, "wrote %zd (chunk size %zd) of %d bytes",
transfer->property_start + len,
len, xcb_get_property_value_length(transfer->property_reply));
diff --git a/xwayland/selection/outgoing.c b/xwayland/selection/outgoing.c
index b612b2fb..6d7565e3 100644
--- a/xwayland/selection/outgoing.c
+++ b/xwayland/selection/outgoing.c
@@ -96,7 +96,7 @@ static int xwm_data_source_read(int fd, uint32_t mask, void *data) {
goto error_out;
}
- wlr_log(L_DEBUG, "read %ld bytes (available %zu, mask 0x%x)", len,
+ wlr_log(L_DEBUG, "read %zd bytes (available %zu, mask 0x%x)", len,
available, mask);
transfer->source_data.size = current + len;