From 7ee6b78b9f901e84be31117940ab7ab8af631e9d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 10 Dec 2009 18:26:37 +0100 Subject: remove one case when we write data needlessly; remove 2 unused funcs Signed-off-by: Denys Vlasenko --- lib/Utils/logging.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/Utils/logging.cpp') diff --git a/lib/Utils/logging.cpp b/lib/Utils/logging.cpp index cae609b..db952d1 100644 --- a/lib/Utils/logging.cpp +++ b/lib/Utils/logging.cpp @@ -118,16 +118,6 @@ void perror_msg(const char *s, ...) va_end(p); } -void simple_perror_msg_and_die(const char *s) -{ - perror_msg_and_die("%s", s); -} - -void simple_perror_msg(const char *s) -{ - perror_msg("%s", s); -} - void die_out_of_memory(void) { error_msg_and_die("Out of memory, exiting"); -- cgit From 890f62322fc8fee262e39a10428b1a2489edf267 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 11 Dec 2009 16:43:57 +0100 Subject: abrt-cli: report success/failure of reporting. closes bug 71 See https://fedorahosted.org/abrt/ticket/71 Signed-off-by: Denys Vlasenko --- lib/Utils/logging.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Utils/logging.cpp') diff --git a/lib/Utils/logging.cpp b/lib/Utils/logging.cpp index db952d1..53b83d7 100644 --- a/lib/Utils/logging.cpp +++ b/lib/Utils/logging.cpp @@ -60,6 +60,7 @@ static void verror_msg_helper(const char *s, va_list p, const char* strerr, int fflush(stdout); full_write(STDERR_FILENO, msg, used + msgeol_len); } + msg[used] = '\0'; /* remove msg_eol (usually "\n") */ if (flags & LOGMODE_SYSLOG) { syslog(LOG_ERR, "%s", msg + prefix_len); } -- cgit