summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_ioctl_network_fs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-01-18 13:57:16 -0800
committerStefan Metzmacher <metze@samba.org>2013-01-19 12:14:13 +0100
commit853360b8e558f39218fc150ead367255f3a010b2 (patch)
treee605ea5a0351402dd5f95f18b148fe3cee2403d2 /source3/smbd/smb2_ioctl_network_fs.c
parent80a6fe84271d15cc22caa3d08768ab5559ef9ed7 (diff)
downloadsamba-853360b8e558f39218fc150ead367255f3a010b2.tar.gz
samba-853360b8e558f39218fc150ead367255f3a010b2.tar.bz2
samba-853360b8e558f39218fc150ead367255f3a010b2.zip
Fix warnings with mismatched sizes in arguments to DEBUG statements.
This can cause compile errors on 32-bit systems. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Jan 19 12:14:13 CET 2013 on sn-devel-104
Diffstat (limited to 'source3/smbd/smb2_ioctl_network_fs.c')
-rw-r--r--source3/smbd/smb2_ioctl_network_fs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/smbd/smb2_ioctl_network_fs.c b/source3/smbd/smb2_ioctl_network_fs.c
index a8d64e3b69..1e1e3e5e94 100644
--- a/source3/smbd/smb2_ioctl_network_fs.c
+++ b/source3/smbd/smb2_ioctl_network_fs.c
@@ -160,7 +160,7 @@ static struct tevent_req *fsctl_srv_copychunk_send(TALLOC_CTX *mem_ctx,
if (in_max_output < sizeof(struct srv_copychunk_rsp)) {
DEBUG(3, ("max output %d not large enough to hold copy chunk "
"response %lu\n", (int)in_max_output,
- sizeof(struct srv_copychunk_rsp)));
+ (unsigned long)sizeof(struct srv_copychunk_rsp)));
state->status = NT_STATUS_INVALID_PARAMETER;
tevent_req_nterror(req, state->status);
return tevent_req_post(req, ev);
@@ -253,14 +253,14 @@ static void fsctl_srv_copychunk_vfs_done(struct tevent_req *subreq)
&chunk_nwritten);
TALLOC_FREE(subreq);
if (NT_STATUS_IS_OK(status)) {
- DEBUG(10, ("good copy chunk recv %d of %d\n",
- state->recv_count,
- state->dispatch_count));
+ DEBUG(10, ("good copy chunk recv %u of %u\n",
+ (unsigned int)state->recv_count,
+ (unsigned int)state->dispatch_count));
state->total_written += chunk_nwritten;
} else {
- DEBUG(0, ("bad status in copy chunk recv %d of %d: %s\n",
- state->recv_count,
- state->dispatch_count,
+ DEBUG(0, ("bad status in copy chunk recv %u of %u: %s\n",
+ (unsigned int)state->recv_count,
+ (unsigned int)state->dispatch_count,
nt_errstr(status)));
state->bad_recv_count++;
/* may overwrite previous failed status */
@@ -427,7 +427,7 @@ static NTSTATUS fsctl_srv_req_resume_key(TALLOC_CTX *mem_ctx,
if (in_max_output < output.length) {
DEBUG(1, ("max output %u too small for resume key rsp %ld\n",
- in_max_output, (long int)output.length));
+ (unsigned int)in_max_output, (long int)output.length));
return NT_STATUS_INVALID_PARAMETER;
}
*out_output = output;