From patchwork Tue Oct 4 18:17:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9362217 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2918E607D8 for ; Tue, 4 Oct 2016 18:20:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E85628AB1 for ; Tue, 4 Oct 2016 18:20:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 127C428BC9; Tue, 4 Oct 2016 18:20:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B5A8A28BB7 for ; Tue, 4 Oct 2016 18:20:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brUHs-0001Sy-VY; Tue, 04 Oct 2016 18:17:56 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brUHr-0001SV-D2 for xen-devel@lists.xenproject.org; Tue, 04 Oct 2016 18:17:55 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id A6/21-15404-252F3F75; Tue, 04 Oct 2016 18:17:54 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHLMWRWlGSWpSXmKPExsWS0XRdVTfo0+d wg3cb+Sy+b5nM5MDocfjDFZYAxijWzLyk/IoE1owdrTtZC1ayV7RuWMzWwHiKtYuRi0NI4Auj xMz555kgnFuMEq1r+tghnJWMEje3rGXsYuTkYBPQlWja8pcNxBYRUJK4t2oyUAcHB7OAtsS57 fIgYWGBaIkfk/6ygNgsAqoSJz9uASvnFfCU2DbzEJgtIaAo0f1sApjNKeAl8ezTe2YQWwioZs al82wTGHkWMDKsYlQvTi0qSy3SNdFLKspMzyjJTczM0TU0MNPLTS0uTkxPzUlMKtZLzs/dxAj 0OwMQ7GDsvux/iFGSg0lJlPfIo8/hQnxJ+SmVGYnFGfFFpTmpxYcYZTg4lCR49T4C5QSLUtNT K9Iyc4ABCJOW4OBREuFVAUnzFhck5hZnpkOkTjHqciz4cXstkxBLXn5eqpQ4rwlIkQBIUUZpH twIWDRcYpSVEuZlBDpKiKcgtSg3swRV/hWjOAejkjDviw9AU3gy80rgNr0COoIJ6IjALR9Aji hJREhJNTAu3dvnrtewo0J9rsXzTIYpX8I1pkoqfXc7Il++qE80efOfLWJKz6Tbfj4/nzTDNqP EW+nMFJXXz1Z4ti/l+fu68MMdhxu+VsXtfbfCn5v9Ueetn2b/puPJhA+XnPUyt+TuM9/t8vDg m899H3Xq5mQ/3XFIK/vvypyTk3s2fVebqr73j8XkuyvuKbEUZyQaajEXFScCAEmRxGSBAgAA X-Env-Sender: iwj@xenbits.xen.org X-Msg-Ref: server-5.tower-21.messagelabs.com!1475605073!28475370!1 X-Originating-IP: [104.130.215.37] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28004 invoked from network); 4 Oct 2016 18:17:54 -0000 Received: from mail.xenproject.org (HELO mail.xenproject.org) (104.130.215.37) by server-5.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 4 Oct 2016 18:17:54 -0000 Received: from host146.205.237.98.conversent.net ([205.237.98.146] helo=infra.test-lab.xenproject.org) by mail.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brUHo-0007im-LX; Tue, 04 Oct 2016 18:17:52 +0000 Received: from [172.16.144.3] (helo=osstest.test-lab.xenproject.org) by infra.test-lab.xenproject.org with esmtp (Exim 4.80) (envelope-from ) id 1brUHj-0006cL-Aa; Tue, 04 Oct 2016 18:17:47 +0000 Received: from iwj by osstest.test-lab.xenproject.org with local (Exim 4.80) (envelope-from ) id 1brUHj-0004nr-0z; Tue, 04 Oct 2016 18:17:47 +0000 From: Ian Jackson To: xen-devel@lists.xenproject.org Date: Tue, 4 Oct 2016 18:17:42 +0000 Message-Id: <1475605064-18326-2-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1475605064-18326-1-git-send-email-ian.jackson@eu.citrix.com> References: <1475605064-18326-1-git-send-email-ian.jackson@eu.citrix.com> Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 2/4] host allocation: Pass a debug function in find_recent_duration X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP We provide only a commented-out debug print. This produces more copius output than is desirable even to a compressed debug log. No functional change. Signed-off-by: Ian Jackson --- ts-hosts-allocate-Executive | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index 7c32847..9d8fbfd 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -487,7 +487,10 @@ sub find_recent_duration ($$) { ($candrow->{Duration}, $candrow->{MostRecentStarted}, $candrow->{MostRecentStatus}) = - $duration_estimator->($job, $hid->{Ident}, $candrow->{resname}); + $duration_estimator->($job, $hid->{Ident}, $candrow->{resname}, + sub { +# print DEBUG "$dbg DUR-EST @_\n"; + }); }