conn->pull_buf = conn->pull_buf_offset = NULL;
conn->pull_buf_len = 0;
} else {
- wpa_printf(MSG_DEBUG, "%s - %d bytes remaining in pull_buf",
- __func__, end - conn->pull_buf_offset);
+ wpa_printf(MSG_DEBUG, "%s - %lu bytes remaining in pull_buf",
+ __func__,
+ (unsigned long) (end - conn->pull_buf_offset));
}
return len;
}
if (in_data && in_len) {
if (conn->pull_buf) {
- wpa_printf(MSG_DEBUG, "%s - %d bytes remaining in "
- "pull_buf", __func__, conn->pull_buf_len);
+ wpa_printf(MSG_DEBUG, "%s - %lu bytes remaining in "
+ "pull_buf", __func__,
+ (unsigned long) conn->pull_buf_len);
os_free(conn->pull_buf);
}
conn->pull_buf = os_malloc(in_len);
ssize_t res;
if (conn->pull_buf) {
- wpa_printf(MSG_DEBUG, "%s - %d bytes remaining in "
- "pull_buf", __func__, conn->pull_buf_len);
+ wpa_printf(MSG_DEBUG, "%s - %lu bytes remaining in "
+ "pull_buf", __func__,
+ (unsigned long) conn->pull_buf_len);
os_free(conn->pull_buf);
}
conn->pull_buf = os_malloc(in_len);
if (res < 0) {
wpa_printf(MSG_DEBUG, "%s - gnutls_ia_recv failed: %d "
- "(%s)", __func__, res,
+ "(%s)", __func__, (int) res,
gnutls_strerror(res));
}
return res;
res = gnutls_record_recv(conn->session, out_data, out_len);
if (res < 0) {
wpa_printf(MSG_DEBUG, "%s - gnutls_record_recv failed: %d "
- "(%s)", __func__, res, gnutls_strerror(res));
+ "(%s)", __func__, (int) res, gnutls_strerror(res));
}
return res;