mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-17 13:50:06 +01:00
Fix condition for printing debug message.
This commit is contained in:
@@ -2462,10 +2462,7 @@ static int auto_detect_active_name(struct crypt_device *cd, const char *data_dev
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
r = tools_lookup_crypt_device(cd, crypt_get_type(cd), data_device, dm_name, dm_name_len);
|
r = tools_lookup_crypt_device(cd, crypt_get_type(cd), data_device, dm_name, dm_name_len);
|
||||||
if (r < 0)
|
if (r > 0)
|
||||||
return r;
|
|
||||||
|
|
||||||
if (r >= 0)
|
|
||||||
log_dbg("Device %s has %d active holders.", data_device, r);
|
log_dbg("Device %s has %d active holders.", data_device, r);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|||||||
Reference in New Issue
Block a user