From ac8bb308b711499632f6f456d7d298bdcd24b14e Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Sat, 6 Jul 2019 13:51:55 +0300 Subject: [PATCH] growfs: call crypt_set_debug_level() correctly, skip if not needed --- src/partition/growfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/partition/growfs.c b/src/partition/growfs.c index ce86f96..9e7178a 100644 --- a/src/partition/growfs.c +++ b/src/partition/growfs.c @@ -129,7 +129,8 @@ static int maybe_resize_slave_device(const char *mountpath, dev_t main_devno) { #if HAVE_LIBCRYPTSETUP crypt_set_log_callback(NULL, cryptsetup_log_glue, NULL); - crypt_set_debug_level(1); + if (DEBUG_LOGGING) + crypt_set_debug_level(CRYPT_DEBUG_ALL); #endif r = get_block_device_harder(mountpath, &devno); -- 2.7.4