From 07dcb5af12b81eec16fd023247d6f723b0206f3d Mon Sep 17 00:00:00 2001
From: Øyvind Harboe <oyvind.harboe@zylin.com>
Date: Tue, 21 Dec 2010 14:07:17 +0100
Subject: server: remove error value from LOG_INFO
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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>
---
 src/server/server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/server')

diff --git a/src/server/server.c b/src/server/server.c
index 1feb744b..70d9566a 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -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;
 						}
-- 
cgit v1.2.3