From: Ivan Shapovalov Date: Sat, 6 Jul 2019 10:51:55 +0000 (+0300) Subject: growfs: call crypt_set_debug_level() correctly, skip if not needed X-Git-Tag: v243-rc1~180^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12972%2Fhead;p=thirdparty%2Fsystemd.git growfs: call crypt_set_debug_level() correctly, skip if not needed --- diff --git a/src/partition/growfs.c b/src/partition/growfs.c index ce86f96e13d..9e7178ac458 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);