aboutsummaryrefslogtreecommitdiff
path: root/xwayland/selection/outgoing.c
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/outgoing.c
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/outgoing.c')
-rw-r--r--xwayland/selection/outgoing.c2
1 files changed, 1 insertions, 1 deletions
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;