Merge pull request #910 from agx/printf-ssize_t

Use correct prinf format specifiers for ssize_t
This commit is contained in:
emersion 2018-04-26 09:49:39 +01:00 committed by GitHub
commit 31857c9ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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