[geany/geany] 66823d: g_printerr handler: Don't add newline
Nick Treleaven
git-noreply at xxxxx
Sat Oct 5 10:55:55 UTC 2019
Branch: refs/heads/master
Author: Nick Treleaven <n at trelsoft.com>
Committer: Nick Treleaven <n at trelsoft.com>
Date: Sat, 05 Oct 2019 10:55:55 UTC
Commit: 66823da6ac03ed9e2222437e8a567371c729f762
https://github.com/geany/geany/commit/66823da6ac03ed9e2222437e8a567371c729f762
Log Message:
-----------
g_printerr handler: Don't add newline
Modified Paths:
--------------
src/log.c
src/tagmanager/tm_workspace.c
src/utils.c
Modified: src/log.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -86,10 +86,10 @@ static void handler_print(const gchar *msg)
static void handler_printerr(const gchar *msg)
{
- fprintf(stderr, "%s\n", msg);
+ fprintf(stderr, "%s", msg);
if (G_LIKELY(log_buffer != NULL))
{
- g_string_append_printf(log_buffer, "%s\n", msg);
+ g_string_append_printf(log_buffer, "%s", msg);
update_dialog();
}
}
Modified: src/tagmanager/tm_workspace.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -549,7 +549,7 @@ static gchar *pre_process_file(const gchar *cmd, const gchar *inf)
g_file_get_contents(tmp_errfile, &errors, NULL, NULL);
if (errors && *errors)
- g_printerr("%s", errors);
+ g_printerr("%s\n", errors);
g_free(errors);
g_unlink(tmp_errfile);
g_free(tmp_errfile);
Modified: src/utils.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -2372,13 +2372,13 @@ void utils_start_new_geany_instance(const gchar *doc_path)
if (!utils_spawn_async(NULL, (gchar**) argv, NULL, 0, NULL, NULL, NULL, &err))
{
- g_printerr("Unable to open new window: %s", err->message);
+ g_printerr("Unable to open new window: %s\n", err->message);
g_error_free(err);
}
g_free(exec_path);
}
else
- g_printerr("Unable to find 'geany'");
+ g_printerr("Unable to find 'geany'\n");
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list