From: Ian Jackson Subject: Re: [OSSTEST PATCH 3/1] ts-hosts-allocate-Executive: Print more info about booking to main log Date: Tue, 29 Sep 2015 17:28:51 +0100 Message-ID: <22026.48195.209586.617750@mariner.uk.xensource.com> References: <1443536078-23449-1-git-send-email-ian.jackson@eu.citrix.com> <1443540459-31266-1-git-send-email-ian.jackson@eu.citrix.com> <1443540459-31266-2-git-send-email-ian.jackson@eu.citrix.com> <1443542934.16718.139.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZgxsU-00066u-K8 for xen-devel@lists.xenproject.org; Tue, 29 Sep 2015 16:35:42 +0000 In-Reply-To: <1443542934.16718.139.camel@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: Ian Campbell Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST PATCH 3/1] ts-hosts-allocate-Executive: Print more info about booking to main log"): > On Tue, 2015-09-29 at 16:27 +0100, Ian Jackson wrote: > > Signed-off-by: Ian Jackson > > + push @{ $prstart{ $book->{Start }} }, $pr; > > ^ stray space? Space in wrong place. Should have read: push @{ $prstart{ $book->{Start} } }, $pr; (That's cosmetic only.) > > + my $pr = ''; > > + foreach my $start (sort { $a <=> $b } keys %prstart) { > > + $pr .= " \@$start @{ $prstart{$start} }"; > > Even with one reso and its Xinfo this is going to be quite a long line, > isn't it? > > I don't think it really matters in the context, so in any case Output looks like this: 2015-09-29 14:59:53 Z host allocation: planned start in 829 seconds. 2015-09-29 14:59:53 Z resource allocation: booking @829 host scape-moth [host]. 2015-09-29 14:59:54 Z resource allocation: we are in the plan. I see that in this case it _just_ fits into 80 columns :-). But the host allocation log is generally quite wide. I think if this one line wraps it's probably worthwhile. Ian.