diff options
Diffstat (limited to 'src/debug/jdwp/tcp.c')
-rw-r--r-- | src/debug/jdwp/tcp.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/debug/jdwp/tcp.c b/src/debug/jdwp/tcp.c index 38acd29..d4ec1d7 100644 --- a/src/debug/jdwp/tcp.c +++ b/src/debug/jdwp/tcp.c @@ -32,11 +32,15 @@ #include <sys/types.h> +#include <i18n.h> + + #include "packet.h" #include "misc/header.h" #include "sets/list.h" #include "../stream-int.h" #include "../../common/net.h" +#include "../../panels/log.h" @@ -180,12 +184,14 @@ static bool g_jdwp_tcp_client_connect(GJdwpTcpClient *client) sock = connect_via_tcp(client->server, client->port, &addr); if (sock == -1) { - printf("Echec de connexion au serveur JDWP sur %s:%s\n", - client->server, client->port); + log_variadic_message(LMT_ERROR, _("Error while connecting to the JDWP server at %s:%s."), + //printf("Echec de connexion au serveur JDWP sur %s:%s\n", + client->server, client->port); return false; } - printf("Connecté à %s:%hd\n", client->server, ntohs(addr.sin_port)); + log_variadic_message(LMT_PROCESS, _("Connected to %s:%hd."), + client->server, ntohs(addr.sin_port)); if (send(sock, "JDWP-Handshake", 14, 0) != 14) goto gjtcc_error; @@ -202,7 +208,7 @@ static bool g_jdwp_tcp_client_connect(GJdwpTcpClient *client) gjtcc_error: - printf("Echec des premiers échanges !\n"); + log_simple_message(LMT_ERROR, _("Failure in the first JDWP handshake.")); close(sock); |