From patchwork Mon Dec 17 11:07:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 206834 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id D92F82C0095 for ; Mon, 17 Dec 2012 22:07:52 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TkYY2-0000DF-Ij; Mon, 17 Dec 2012 11:07:50 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TkYXx-0000Cq-F7 for fwts-devel@lists.ubuntu.com; Mon, 17 Dec 2012 11:07:45 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TkYXx-0005pV-CO for fwts-devel@lists.ubuntu.com; Mon, 17 Dec 2012 11:07:45 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] lib: fwts_framework: test names should be dislayed in a wider format field Date: Mon, 17 Dec 2012 11:07:44 +0000 Message-Id: <1355742464-32287-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.8.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King We are currently just printing the first 13 chars of the test name in the --show-tests and --show-tests-full options. We should expand this to 15 chars to cope with the larger test names being used nowadays. Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- src/lib/src/fwts_framework.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/src/fwts_framework.c b/src/lib/src/fwts_framework.c index eac05bd..c355ca0 100644 --- a/src/lib/src/fwts_framework.c +++ b/src/lib/src/fwts_framework.c @@ -265,7 +265,7 @@ static void fwts_framework_show_tests(fwts_framework *fw, bool full) test = fwts_list_data(fwts_framework_test *, item); if (full) { int j; - printf(" %-13.13s (%d test%s):\n", + printf(" %-15.15s (%d test%s):\n", test->name, test->ops->total_tests, test->ops->total_tests > 1 ? "s" : ""); for (j=0; jops->total_tests;j++) @@ -273,7 +273,7 @@ static void fwts_framework_show_tests(fwts_framework *fw, bool full) total += test->ops->total_tests; } else { - printf(" %-13.13s %s\n", test->name, + printf(" %-15.15s %s\n", test->name, test->ops->description ? test->ops->description : ""); } }