From: Ian Jackson Subject: [OSSTEST PATCH 1/7] Nested hosts: Print L0 as well as L1 parent name in selectguest Date: Mon, 16 Nov 2015 17:54:19 +0000 Message-ID: <1447696465-24978-2-git-send-email-ian.jackson@eu.citrix.com> References: <1447696465-24978-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZyNzB-0000FS-5t for xen-devel@lists.xenproject.org; Mon, 16 Nov 2015 17:54:37 +0000 In-Reply-To: <1447696465-24978-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Robert Ho , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Now that we have hostnamepath_list, we can remove the ad-hoc expansion "$gn on $...{Name}" with a recipe which ascends through the applicable nesting levels. Signed-off-by: Ian Jackson --- Osstest/TestSupport.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index a66f8a9..38386d4 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1453,7 +1453,9 @@ sub selectguest ($$) { foreach my $opt (guest_var_commalist($gho,'options')) { $gho->{Options}{$opt}++; } - logm("guest: using $gn on $gho->{Host}{Name}"); + my $m = "guest: using $gn"; + $m .= " on $_" foreach hostnamepath_list($gho->{Host}); + logm($m); guest_find_lv($gho); guest_find_diskimg($gho); guest_find_ether($gho); -- 1.7.10.4