From: Ian Campbell Subject: Re: [OSSTEST PATCH] ts-hosts-allocate-Executive: improve debugging slightly Date: Wed, 23 Apr 2014 11:10:05 +0100 Message-ID: <1398247805.18537.8.camel@kazak.uk.xensource.com> References: <1398247530-31684-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.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wcu81-0005iK-CO for xen-devel@lists.xenproject.org; Wed, 23 Apr 2014 10:10:09 +0000 In-Reply-To: <1398247530-31684-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: Ian Jackson Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-04-23 at 11:05 +0100, Ian Jackson wrote: > I spotted a logfile where an allocation had failed (later worked OK) > with $allocatable=0 here. Provide more info next time. > > Signed-off-by: Ian Jackson FWIW Acked-by: Ian Campbell > --- > ts-hosts-allocate-Executive | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive > index 707c6a7..0e9c193 100755 > --- a/ts-hosts-allocate-Executive > +++ b/ts-hosts-allocate-Executive > @@ -644,7 +644,8 @@ sub actual_allocation ($) { > > my $allocatable= $cand->{owntaskid} == $magictaskid{allocatable}; > my $dbg= "$hid->{Ident} $sel->{Reso}"; > - printf DEBUG "%s ALLOC PLAIN %d\n", $dbg, $allocatable; > + printf DEBUG "%s ALLOC PLAIN %d (%d, %d)\n", $dbg, $allocatable, > + $cand->{owntaskid}, $magictaskid{allocatable}; > > my $shared; > my $shrestype= 'share-'.$sel->{restype};