mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Check pointer before deref in debug message
This commit is contained in:
parent
d27834ff0a
commit
17c3bf7b22
4
lib/cache/lvmcache.c
vendored
4
lib/cache/lvmcache.c
vendored
@ -1110,8 +1110,8 @@ static int _lvmcache_update_vgid(struct lvmcache_info *info,
|
||||
|
||||
if (!is_orphan_vg(vginfo->vgname))
|
||||
log_debug("lvmcache: %s: setting %s VGID to %s",
|
||||
dev_name(info->dev), vginfo->vgname,
|
||||
vginfo->vgid);
|
||||
(info) ? dev_name(info->dev) : "",
|
||||
vginfo->vgname, vginfo->vgid);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user