Standardize debug messages for read and write.
authorJeremy Allison <jra@samba.org>
Tue, 25 May 2010 18:39:46 +0000 (11:39 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 25 May 2010 18:39:46 +0000 (11:39 -0700)
Jeremy.

source3/smbd/smb2_read.c
source3/smbd/smb2_write.c

index d4c38d65df4aaf31a6ab1cc3143699a74fff7ef9..b29da4a3569cf1a44f4b516c00c12acff13ef400 100644 (file)
@@ -310,6 +310,12 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
                return tevent_req_post(req, ev);
        }
 
+       DEBUG(3,("smbd_smb2_read: fnum=[%d/%s] length=%lu offset=%lu read=%lu\n",
+               fsp->fnum, fsp_str_dbg(fsp),
+               (unsigned long)in_length,
+               (unsigned long)in_offset,
+               (unsigned long)nread));
+
        state->out_data.length = nread;
        state->out_remaining = 0;
        tevent_req_done(req);
index ae98c812e9f565a38b4a1e24fa5b853fd094d37d..c3ac816c5912fac20f3fe6d38c3891b3f2c2f16d 100644 (file)
@@ -287,9 +287,11 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx,
                return tevent_req_post(req, ev);
        }
 
-       DEBUG(3,("smbd_smb2_write: fnum=[%d/%s] length=%d offset=%d wrote=%d\n",
-               fsp->fnum, fsp_str_dbg(fsp), (int)in_data.length,
-               (int)in_offset, (int)nwritten));
+       DEBUG(3,("smbd_smb2_write: fnum=[%d/%s] length=%lu offset=%lu wrote=%lu\n",
+               fsp->fnum, fsp_str_dbg(fsp),
+               (unsigned long)in_data.length,
+               (unsigned long)in_offset,
+               (unsigned long)nwritten));
 
        if (in_flags & 0x00000001) {
                write_through = true;