1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Check pointer before deref in debug message

This commit is contained in:
Zdenek Kabelac 2012-03-01 21:58:55 +00:00
parent 7038d527a6
commit ec19a5a62f

View File

@ -1110,8 +1110,8 @@ static int _lvmcache_update_vgid(struct lvmcache_info *info,
if (!is_orphan_vg(vginfo->vgname)) if (!is_orphan_vg(vginfo->vgname))
log_debug("lvmcache: %s: setting %s VGID to %s", log_debug("lvmcache: %s: setting %s VGID to %s",
dev_name(info->dev), vginfo->vgname, (info) ? dev_name(info->dev) : "",
vginfo->vgid); vginfo->vgname, vginfo->vgid);
return 1; return 1;
} }