diff options
Diffstat (limited to 'lib/device/dev-io.c')
-rw-r--r-- | lib/device/dev-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index 4e25e9d4..137e1cb8 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -336,7 +336,7 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet) if (dev->open_count && !need_excl) { /* FIXME Ensure we never get here */ - log_debug("WARNING: %s already opened read-only", + log_debug("WARNING: %s already opened read-only", dev_name(dev)); dev->open_count++; } @@ -516,7 +516,7 @@ static int _dev_close(struct device *dev, int immediate) /* Close unless device is known to belong to a locked VG */ if (immediate || - (dev->open_count < 1 && + (dev->open_count < 1 && (!(info = info_from_pvid(dev->pvid, 0)) || !info->vginfo || !vgname_is_locked(info->vginfo->vgname)))) |