From 677ec408bf6d3d82452d9357947c5d9691e968d8 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 1 Jun 2011 15:30:36 +0000 Subject: [PATCH] Report sector containing label in verbose message. --- WHATS_NEW | 1 + lib/label/label.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 4b8f7b355..20649128a 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.86 - ================================= + Report sector containing label in verbose message. Clarify error message when unable to convert an LV into a snapshot of an LV. Add and use dev_open_readonly and variations. Do not log a superfluous stack message when the lv is properly processed. diff --git a/lib/label/label.c b/lib/label/label.c index f1efecfe0..eb04ea359 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -156,8 +156,10 @@ static struct labeller *_find_labeller(struct device *dev, char *buf, dm_list_iterate_items(li, &_labellers) { if (li->l->ops->can_handle(li->l, (char *) lh, sector + scan_sector)) { - log_very_verbose("%s: %s label detected", - dev_name(dev), li->name); + log_very_verbose("%s: %s label detected at " + "sector %" PRIu64, + dev_name(dev), li->name, + sector + scan_sector); if (found) { log_error("Ignoring additional label " "on %s at sector %" PRIu64,