summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-11-22 23:27:14 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-11-22 23:27:14 +0100
commit30cf5a04ac0dc3dd4bd0662b241349bd0d10b469 (patch)
tree43fd9b6c1edf48dc6329388e9f6148e9045f98e0
parentb920fb734f2b7dffead3610b835c3ceb518b835f (diff)
Unix: disable some debug output
-rw-r--r--sysdep/unix/io.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 3e3bedb2..a3c4a29f 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -1556,33 +1556,25 @@ sk_connect_unix(sock *s, char *name, socklen_t namelen)
struct sockaddr_un sa;
int fd;
- log(L_TRACE "sk_connect_unix %d %s", name[0], name + 1);
-
if (namelen > sizeof(sa.sun_path))
return -1;
- log(L_TRACE "sk_connect_unix 2");
-
fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd < 0)
return -2;
- log(L_TRACE "sk_connect_unix 3");
-
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
{
close(fd);
return -3;
}
- log(L_TRACE "sk_connect_unix 4");
-
/* Path length checked in test_old_bird() */
memset(&sa, 0, sizeof(sa));
sa.sun_family = AF_UNIX;
memcpy(sa.sun_path, name, namelen);
- hexdump((const char*)&sa, sizeof(sa.sun_family) + namelen);
+ //hexdump((const char*)&sa, sizeof(sa.sun_family) + namelen);
s->fd = fd;
s->type = SK_UNIX_ACTIVE;
@@ -1596,8 +1588,6 @@ sk_connect_unix(sock *s, char *name, socklen_t namelen)
ERR2("connect");
}
- log(L_TRACE "sk_connect_unix 5");
-
sk_insert(s);
return 0;