server: remove error value from LOG_INFO

the error values is not part of the interface to the user,
so they should never be printed in LOG_INFO or LOG_USER.

Printing them in LOG_DEBUG() rarely makes much sense but
is OK.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe 2010-12-21 14:07:17 +01:00
parent 29d2d15f3f
commit 07dcb5af12
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ int server_loop(struct command_context *command_context)
shutdown_openocd = 1;
}
remove_connection(service, c);
LOG_INFO("dropped '%s' connection - error %d", service->name, retval);
LOG_INFO("dropped '%s' connection", service->name);
c = next;
continue;
}