From: Petr Rockai Date: Wed, 20 Oct 2010 14:51:18 +0000 (+0000) Subject: Revert some debug statements that slipped in with last checkin. X-Git-Tag: v2_02_91~1461 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=8f1ead4640e06165b69e07ebba4967330d710e76;p=lvm2.git Revert some debug statements that slipped in with last checkin. --- diff --git a/daemons/clvmd/clvmd-command.c b/daemons/clvmd/clvmd-command.c index 2ac0333c3..3500ca5d9 100644 --- a/daemons/clvmd/clvmd-command.c +++ b/daemons/clvmd/clvmd-command.c @@ -210,12 +210,9 @@ static int lock_vg(struct local_client *client) if (lock_mode == LCK_UNLOCK) { - DEBUGLOG("PRE: UNLOCK\n"); lkid = (int)(long)dm_hash_lookup(lock_hash, lockname); - if (lkid == 0) { - DEBUGLOG("lock not found in table\n"); + if (lkid == 0) return EINVAL; - } status = sync_unlock(lockname, lkid); if (status) @@ -224,7 +221,6 @@ static int lock_vg(struct local_client *client) dm_hash_remove(lock_hash, lockname); } else { - DEBUGLOG("PRE: LOCK\n"); /* Read locks need to be PR; other modes get passed through */ if (lock_mode == LCK_READ) lock_mode = LCK_PREAD;