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__archive__
parent
1812a3535c
commit
d1fe9bacbb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue