Merge pull request #910 from agx/printf-ssize_t

Use correct prinf format specifiers for ssize_t
master
emersion 7 years ago committed by GitHub
commit 31857c9ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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));

@ -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;

Loading…
Cancel
Save