From 875ffa49b35869a0efcffb2ac78b1a4cdfa3e428 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Wed, 19 Jun 2019 12:12:02 +0200 Subject: [PATCH] Fix log_dbg EOL in tools. --- src/utils_tools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils_tools.c b/src/utils_tools.c index 3d4025a9..60378277 100644 --- a/src/utils_tools.c +++ b/src/utils_tools.c @@ -90,7 +90,8 @@ void clogger(struct crypt_device *cd, int level, const char *file, int line, if (vsnprintf(&target[0], LOG_MAX_LEN, format, argp) > 0) { /* All verbose and error messages in tools end with EOL. */ - if (level == CRYPT_LOG_VERBOSE || level == CRYPT_LOG_ERROR) + if (level == CRYPT_LOG_VERBOSE || level == CRYPT_LOG_ERROR || + level == CRYPT_LOG_DEBUG || level == CRYPT_LOG_DEBUG_JSON) strncat(target, "\n", LOG_MAX_LEN); crypt_log(cd, level, target);