mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-17 22:00:07 +01:00
Fix log_dbg EOL in tools.
This commit is contained in:
@@ -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) {
|
if (vsnprintf(&target[0], LOG_MAX_LEN, format, argp) > 0) {
|
||||||
/* All verbose and error messages in tools end with EOL. */
|
/* 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);
|
strncat(target, "\n", LOG_MAX_LEN);
|
||||||
|
|
||||||
crypt_log(cd, level, target);
|
crypt_log(cd, level, target);
|
||||||
|
|||||||
Reference in New Issue
Block a user