summaryrefslogtreecommitdiff
path: root/source4/ntvfs/nbench
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-10-28 22:18:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:57 -0500
commit195f48dcbf432833f8957b0387ac81fb7c46ca27 (patch)
treea5fe8b0f9e6a8019f74d3e856c1bcb365dc2cee9 /source4/ntvfs/nbench
parent019719595778e0bd0a00781b33407554d1943985 (diff)
downloadsamba-195f48dcbf432833f8957b0387ac81fb7c46ca27.tar.gz
samba-195f48dcbf432833f8957b0387ac81fb7c46ca27.tar.bz2
samba-195f48dcbf432833f8957b0387ac81fb7c46ca27.zip
r3337: remove debug code and reanable the reall logging:-)
metze (This used to be commit 00b285e5a815e6d53ede7d102dee4e5b79d47f52)
Diffstat (limited to 'source4/ntvfs/nbench')
-rw-r--r--source4/ntvfs/nbench/vfs_nbench.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source4/ntvfs/nbench/vfs_nbench.c b/source4/ntvfs/nbench/vfs_nbench.c
index ab2d7af7b1..db89d7ccf4 100644
--- a/source4/ntvfs/nbench/vfs_nbench.c
+++ b/source4/ntvfs/nbench/vfs_nbench.c
@@ -47,7 +47,7 @@ static void nbench_log(struct nbench_private *private,
vasprintf(&s, format, ap);
va_end(ap);
- //write(private->log_fd, s, strlen(s));
+ write(private->log_fd, s, strlen(s));
free(s);
}
@@ -68,10 +68,7 @@ static void nbench_log(struct nbench_private *private,
#define PASS_THRU_REQ_POST_ASYNC(req) do { \
req->async_states->status = status; \
if (!(req->async_states->state & NTVFS_ASYNC_STATE_ASYNC)) { \
-DEBUG(0,("NBENCH S 0x%04X: %s: %s 0x%X\n", req->mid, __FUNCTION__, nt_errstr(status),req->async_states->state)); \
req->async_states->send_fn(req); \
- } else { \
-DEBUG(0,("NBENCH A 0x%04X: %s: %s\n", req->mid, __FUNCTION__, nt_errstr(status))); \
} \
} while (0)
@@ -84,7 +81,6 @@ DEBUG(0,("NBENCH A 0x%04X: %s: %s\n", req->mid, __FUNCTION__, nt_errstr(status))
#define PASS_THRU_REP_POST(req) do { \
ntvfs_async_state_pop(req); \
if (req->async_states->state & NTVFS_ASYNC_STATE_ASYNC) { \
-DEBUG(0,("NBENCH A0x%04X: %s: %s\n", req->mid, __FUNCTION__, nt_errstr(req->async_states->status))); \
req->async_states->send_fn(req); \
} \
} while (0)
@@ -106,7 +102,7 @@ static NTSTATUS nbench_connect(struct ntvfs_module_context *ntvfs,
if (!nprivates) {
return NT_STATUS_NO_MEMORY;
}
-#if 0
+
asprintf(&logname, "/tmp/nbenchlog%d.%u", ntvfs->depth, getpid());
nprivates->log_fd = sys_open(logname, O_WRONLY|O_CREAT|O_APPEND, 0644);
free(logname);
@@ -115,7 +111,7 @@ static NTSTATUS nbench_connect(struct ntvfs_module_context *ntvfs,
DEBUG(0,("Failed to open nbench log\n"));
return NT_STATUS_UNSUCCESSFUL;
}
-#endif
+
ntvfs->private_data = nprivates;
status = ntvfs_next_connect(ntvfs, req, sharename);