From 6ae26a6b54a47f539395dc68de115b8e103a74e6 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 22 May 2020 17:20:35 +0100 Subject: Fix utf8proc version logging. --- compat.h | 4 ++++ proc.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/compat.h b/compat.h index df8aa562..43a46021 100644 --- a/compat.h +++ b/compat.h @@ -33,6 +33,10 @@ #include #endif +#ifdef HAVE_UTF8PROC +#include +#endif + #ifndef __GNUC__ #define __attribute__(a) #endif diff --git a/proc.c b/proc.c index 68de33c6..823a4a52 100644 --- a/proc.c +++ b/proc.c @@ -183,14 +183,14 @@ proc_start(const char *name) log_debug("%s started (%ld): version %s, socket %s, protocol %d", name, (long)getpid(), getversion(), socket_path, PROTOCOL_VERSION); - log_debug("on %s %s %s; libevent %s (%s)" + log_debug("on %s %s %s", u.sysname, u.release, u.version); + log_debug("using libevent %s (%s)" #ifdef HAVE_UTF8PROC "; utf8proc %s/%s" #endif #ifdef NCURSES_VERSION "; ncurses " NCURSES_VERSION #endif - , u.sysname, u.release, u.version , event_get_version(), event_get_method() #ifdef HAVE_UTF8PROC , utf8proc_version (), utf8proc_unicode_version () -- cgit