X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flog.c;h=04e90eb20f02239d45441264c07181003a6efce4;hb=2b7dec8661029fd531b3818ca5a5470fa038751c;hp=6caa5fad0b8c37bb6809948f9c0aab343164d287;hpb=5ba081b0fb02380cee4c2ff5bc7e05f869eb8415;p=elogind.git diff --git a/src/log.c b/src/log.c index 6caa5fad0..04e90eb20 100644 --- a/src/log.c +++ b/src/log.c @@ -344,7 +344,7 @@ static int write_to_console( } if (highlight) - IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_ON); + IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_RED_ON); IOVEC_SET_STRING(iovec[n++], buffer); if (highlight) IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_OFF); @@ -625,7 +625,6 @@ void log_assert( const char *format, ...) { static char buffer[LINE_MAX]; - int saved_errno = errno; va_list ap; va_start(ap, format); @@ -637,9 +636,6 @@ void log_assert( log_dispatch(LOG_CRIT, file, line, func, buffer); abort(); - - /* If the user chose to ignore this SIGABRT, we are happy to go on, as if nothing happened. */ - errno = saved_errno; } int log_set_target_from_string(const char *e) {