From f2e3d659eae58094d898b5b6239bf850586597ca Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 1 Feb 2012 01:54:20 +0000 Subject: [PATCH] lp.pool may be (null) too --- tools/lvcreate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 7de835ea2..c7a347f9c 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -1017,7 +1017,8 @@ int lvcreate(struct cmd_context *cmd, int argc, char **argv) if (lp.thin) log_verbose("Making thin LV %s in pool %s in VG %s%s%s using segtype %s", lp.lv_name ? : "with generated name", - lp.pool, lp.vg_name, lp.snapshot ? " as snapshot of " : "", + lp.pool ? : "with generated name", lp.vg_name, + lp.snapshot ? " as snapshot of " : "", lp.snapshot ? lp.origin : "", lp.segtype->name); if (!lv_create_single(vg, &lp)) { -- 2.43.5