aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r--erts/emulator/drivers/common/efile_drv.c7
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c1
2 files changed, 0 insertions, 8 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
index c4f92cc318..b807f110eb 100644
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -1755,12 +1755,10 @@ static void invoke_sendfile(void *data)
result = efile_sendfile(&d->errInfo, fd, out_fd, &d->c.sendfile.offset, &nbytes);
- //printf("sendfile: result: %d, errno: %d, offset: %d, nbytes: %d\r\n",result, errno, d->c.sendfile.offset,nbytes);
d->c.sendfile.written += nbytes;
if (result == 1) {
if (sys_info.async_threads != 0) {
- printf("==> sendfile DONE written=%ld\r\n", d->c.sendfile.written);
d->result_ok = 0;
} else if (d->c.sendfile.nbytes == 0 && nbytes != 0) {
d->result_ok = 1;
@@ -1768,7 +1766,6 @@ static void invoke_sendfile(void *data)
d->result_ok = 1;
d->c.sendfile.nbytes -= nbytes;
} else {
- printf("==> sendfile DONE written=%ld\r\n", d->c.sendfile.written);
d->result_ok = 0;
}
} else if (result == 0 && (d->errInfo.posix_errno == EAGAIN
@@ -1776,7 +1773,6 @@ static void invoke_sendfile(void *data)
d->result_ok = 1;
} else {
d->result_ok = -1;
- printf("==> sendfile ERROR %s\r\n", erl_errno_id(d->errInfo.posix_errno));
}
}
@@ -2224,7 +2220,6 @@ file_async_ready(ErlDrvData e, ErlDrvThreadData data)
break;
#ifdef HAVE_SENDFILE
case FILE_SENDFILE:
- //printf("efile_ready_async: sendfile (d->result_ok == %d)\r\n",d->result_ok);
if (d->result_ok == -1) {
desc->sendfile_state = not_sending;
reply_error(desc, &d->errInfo);
@@ -3442,8 +3437,6 @@ file_outputv(ErlDrvData e, ErlIOVec *ev) {
d->c.sendfile.nbytes = nbytes;
- printf("sendfile(nbytes => %ld, offset => %d, flags => %x)\r\n",d->c.sendfile.nbytes,d->c.sendfile.offset, d->c.sendfile.flags);
-
/* Do HEADER TRAILER stuff by calculating pointer places, not by copying data! */
if (sys_info.async_threads != 0) {
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c
index 8db7f2336e..01de088b0f 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -1475,7 +1475,6 @@ int
efile_sendfile(Efile_error* errInfo, int in_fd, int out_fd,
off_t *offset, Uint64 *nbytes)
{
- // printf("sendfile(%d,%d,%d,%d)\r\n",out_fd,in_fd,*offset,*nbytes);
Uint64 written = 0;
#if defined(__linux__) || (defined(__sun) && defined(__SVR4))
ssize_t retval;