server: remove error value from LOG_INFO
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 21 Dec 2010 13:07:17 +0000 (14:07 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 21 Dec 2010 13:09:00 +0000 (14:09 +0100)
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

index 1feb744b46569e9fa3ffcf9ef9bee96629c4e676..70d9566a3624f4005ff4db85eb223906ab384034 100644 (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;
                                                }