Commit d1fe9bac authored by oharboe's avatar oharboe
Browse files

tidy up output a bit. No longer show "accepted connection" inside Telnet session.

git-svn-id: svn://svn.berlios.de/openocd/trunk@497 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 1812a353
......@@ -62,14 +62,15 @@ int add_connection(service_t *service, command_context_t *cmd_ctx)
address_size = sizeof(c->sin);
c->fd = accept(service->fd, (struct sockaddr *)&service->sin, &address_size);
INFO("accepting '%s' connection from %i", service->name, c->sin.sin_port);
if ((retval = service->new_connection(c)) == ERROR_OK)
{
INFO("accepted '%s' connection from %i", service->name, c->sin.sin_port);
}
else
{
close_socket(c->fd);
INFO("attempted '%s' connection rejected", service->name);
ERROR("attempted '%s' connection rejected", service->name);
free(c);
return retval;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment