From: Ian Jackson Subject: [OSSTEST PATCH 20/29] Planner: ms-queuedaemon: Use chan-get-desc in chan-plan-info Date: Mon, 7 Sep 2015 17:08:18 +0100 Message-ID: <1441642107-21826-21-git-send-email-ian.jackson@eu.citrix.com> References: <1441642107-21826-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZYzAL-0007Cx-2O for xen-devel@lists.xenproject.org; Mon, 07 Sep 2015 16:21:09 +0000 In-Reply-To: <1441642107-21826-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: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This relieves the callers of the need to provide a desc. This is helpful because chan-note-unprocessed doesn't have one. Overall functional change is to show the chan desc (ie, the client TCP connection info) in the list of unprocessed clients. Signed-off-by: Ian Jackson --- v2: New patch --- ms-queuedaemon | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ms-queuedaemon b/ms-queuedaemon index fba28a1..29b906f 100755 --- a/ms-queuedaemon +++ b/ms-queuedaemon @@ -375,7 +375,8 @@ proc cmd/get-last-plan {chan desc w} { return-plan-to-client $chan $w.final } -proc chan-plan-info {chan desc} { +proc chan-plan-info {chan} { + set desc [get-chan-desc $chan] set l {} lappend l [chan-get-info $chan {"$info(preinfo)"} ""] lappend l [chan-get-info $chan {"job $info(job)"} $desc] @@ -388,7 +389,7 @@ proc cmd/book-resources {chan desc bytes} { proc do-book-resources {chan desc data} { global plan errorInfo set w [check-we-are-thinking $chan] - set info [chan-plan-info $plan $desc] + set info [chan-plan-info $chan] if {[catch { exec ./ms-planner -w$w book-resources $info << $data } emsg]} { @@ -494,7 +495,7 @@ proc restarter-restart-now {} { } proc chan-note-unprocessed {w chan} { - exec ./ms-planner -w$w unprocessed [chan-plan-info $chan {}] + exec ./ms-planner -w$w unprocessed [chan-plan-info $chan] } proc notify-to-think {w thinking} { -- 1.7.10.4