From: Ian Jackson Subject: [OSSTEST PATCH 23/29] Planner: ms-queuedaemon: Reformat debugging output for more tasks Date: Mon, 7 Sep 2015 17:08:21 +0100 Message-ID: <1441642107-21826-24-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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZYzAJ-00072s-2w for xen-devel@lists.xenproject.org; Mon, 07 Sep 2015 16:21:07 +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 These wider fields will work well for up to 999 tasks. Cosmetic change only. Signed-off-by: Ian Jackson --- v2: New patch --- ms-queuedaemon | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ms-queuedaemon b/ms-queuedaemon index 9280f51..98cf5c1 100755 --- a/ms-queuedaemon +++ b/ms-queuedaemon @@ -81,20 +81,21 @@ proc log-event {m} { proc log-state {m} { global need_queue_run queue - set lhs [format "N=%d Q=%d (%-11.11s) " \ + set lhs [format "N=%d Q=%d (%-15.15s) " \ $need_queue_run [llength $queue] $queue] foreach-walker w { + append lhs "| " if {[info exists queue_running]} { - append lhs [format "R=%d " [llength $queue_running]] + append lhs [format "R=%-3d " [llength $queue_running]] if {[info exists thinking]} { - append lhs [format "T=%s " $thinking] + append lhs [format "T=%-7s " $thinking] } else { - append lhs [format " "] + append lhs [format " "] } - append lhs [format "(%-11.11s) " $queue_running] + append lhs [format "(%-15.15s) " $queue_running] } else { - append lhs " " + append lhs " " } } -- 1.7.10.4