Mercurial > hg > th-libs
diff th_network.c @ 150:9bc7f60f3013
More portability stuff. :|
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 07 Jan 2015 20:21:27 +0200 |
parents | 0a085e2e8bf5 |
children | b4e1b15a64e1 |
line wrap: on
line diff
--- a/th_network.c Wed Jan 07 17:04:31 2015 +0200 +++ b/th_network.c Wed Jan 07 20:21:27 2015 +0200 @@ -943,8 +943,8 @@ fprintf(f, "\n--------------------------------------------------------------\n" - "err=%d, status=%d, got_bytes=%zd, total_bytes=%zd\n" - "buf=0x%p, in_ptr=0x%04zx, ptr=0x%04zx\n", + "err=%d, status=%d, got_bytes=%" TH_PRIu_SIZE_T ", total_bytes=%" TH_PRIu_SIZE_T "\n" + "buf=0x%p, in_ptr=0x%04" TH_PRIx_SIZE_T ", ptr=0x%04" TH_PRIx_SIZE_T "\n", conn->err, conn->status, conn->base.got_bytes, conn->base.total_bytes, conn->base.buf, conn->base.in_ptr - conn->base.buf, conn->base.ptr - conn->base.buf);