diff options
author | Ivan Shapovalov <intelfx@intelfx.name> | 2019-07-06 13:51:55 +0300 |
---|---|---|
committer | Ivan Shapovalov <intelfx@intelfx.name> | 2019-07-08 16:04:17 +0300 |
commit | ac8bb308b711499632f6f456d7d298bdcd24b14e (patch) | |
tree | d12da25c072233adb78d31b8d5d1f503cb3a0f49 /src/partition/growfs.c | |
parent | 568a84048e7140223df46cfd581e75b4c0633079 (diff) | |
download | systemd-ac8bb308b711499632f6f456d7d298bdcd24b14e.tar.gz |
growfs: call crypt_set_debug_level() correctly, skip if not needed
Diffstat (limited to 'src/partition/growfs.c')
-rw-r--r-- | src/partition/growfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/partition/growfs.c b/src/partition/growfs.c index ce86f96e13..9e7178ac45 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); |