]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
growfs: call crypt_set_debug_level() correctly, skip if not needed 12972/head
authorIvan Shapovalov <intelfx@intelfx.name>
Sat, 6 Jul 2019 10:51:55 +0000 (13:51 +0300)
committerIvan Shapovalov <intelfx@intelfx.name>
Mon, 8 Jul 2019 13:04:17 +0000 (16:04 +0300)
src/partition/growfs.c

index ce86f96e13dd96d622b25e67f500983c3df6c329..9e7178ac45897ed95da7aea93d3f56694d1c2b82 100644 (file)
@@ -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);