From bdf747944995faf9184d2b4223a583f6aaa1751a Mon Sep 17 00:00:00 2001 From: David Teigland Date: Mon, 30 Apr 2018 09:08:40 -0500 Subject: [PATCH] toollib: fix wrong dev reference in process_each_label --- tools/toollib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/toollib.c b/tools/toollib.c index 6b71f2dcc..b9e6bd2b4 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -1569,7 +1569,7 @@ int process_each_label(struct cmd_context *cmd, int argc, char **argv, if (!(label = lvmcache_get_dev_label(devl->dev))) continue; - log_set_report_object_name_and_id(dev_name(dev), NULL); + log_set_report_object_name_and_id(dev_name(devl->dev), NULL); ret = process_single_label(cmd, label, handle); report_log_ret_code(ret);