diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2020-05-18 16:17:05 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2020-05-18 16:17:05 +0300 |
commit | e99887cd894e2a5db49ea64e50af25929e9cc015 (patch) | |
tree | f2ba8da7fb6b49f404ca8b5223927bb054e419d8 /plugins/nx | |
parent | 9f7a64d3d09410686863c7f4b1ebc17ee363b85a (diff) |
New remmina_debug function, replaces remmina_log_print, remmina_log_printf and g_debug
remmina_debug is meant to be used in place of remmina_log_print, remmina_log_printf and g_debug, to print debug
messages in the remmina log window and in the STDOUT
Diffstat (limited to 'plugins/nx')
-rw-r--r-- | plugins/nx/nx_plugin.c | 2 | ||||
-rw-r--r-- | plugins/nx/nx_session.c | 4 | ||||
-rw-r--r-- | plugins/nx/nx_session_manager.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/nx/nx_plugin.c b/plugins/nx/nx_plugin.c index 0c553d1ed..b959307ee 100644 --- a/plugins/nx/nx_plugin.c +++ b/plugins/nx/nx_plugin.c @@ -331,7 +331,7 @@ static gboolean remmina_plugin_nx_start_session(RemminaProtocolWidget *gp) remmina_nx_session_set_encryption(nx, remmina_plugin_nx_service->file_get_int(remminafile, "disableencryption", FALSE) ? 0 : 1); remmina_nx_session_set_localport(nx, remmina_plugin_nx_service->pref_get_sshtunnel_port()); - remmina_nx_session_set_log_callback(nx, remmina_plugin_nx_service->log_printf); + remmina_nx_session_set_log_callback(nx, remmina_plugin_nx_service->debug); s2 = remmina_plugin_nx_service->protocol_plugin_start_direct_tunnel(gp, 22, FALSE); if (s2 == NULL) { diff --git a/plugins/nx/nx_session.c b/plugins/nx/nx_session.c index e698e92fa..8fe287392 100644 --- a/plugins/nx/nx_session.c +++ b/plugins/nx/nx_session.c @@ -443,7 +443,7 @@ static gint remmina_nx_session_parse_response(RemminaNXSession *nx) while ((line = remmina_nx_session_get_line(nx)) != NULL) { if (nx->log_callback) - nx->log_callback("[NX] %s\n", line); + nx->log_callback(line); status = remmina_nx_session_parse_line(nx, line, &p); if (status == 500) { @@ -480,7 +480,7 @@ static gint remmina_nx_session_parse_response(RemminaNXSession *nx) status = nx->status; } else { if (nx->log_callback) - nx->log_callback("[NX] %s\n", pos); + nx->log_callback(pos); nx->response_pos += 8; } nx->status = -1; diff --git a/plugins/nx/nx_session_manager.c b/plugins/nx/nx_session_manager.c index bfddfedaa..d3a808e96 100644 --- a/plugins/nx/nx_session_manager.c +++ b/plugins/nx/nx_session_manager.c @@ -113,7 +113,7 @@ void remmina_nx_session_manager_on_row_activated(GtkTreeView *tree, GtkTreePath { TRACE_CALL(__func__); RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp); - remmina_plugin_nx_service->log_printf("[NX] Default response_id %d\n", + remmina_plugin_nx_service->debug("Default response_id %d", gpdata->default_response); if (gpdata->default_response >= 0) { |