From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E3735A0C45; Wed, 20 Oct 2021 09:47:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D255C41190; Wed, 20 Oct 2021 09:47:47 +0200 (CEST) Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) by mails.dpdk.org (Postfix) with ESMTP id 1129540142 for ; Wed, 20 Oct 2021 09:47:46 +0200 (CEST) Received: by mail-il1-f170.google.com with SMTP id h10so21122103ilq.3 for ; Wed, 20 Oct 2021 00:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NYe8hbuNO2F+947rtTAL9U16LoSJo/nRJegGr64dfss=; b=Znjzk44wfrMcZeAyZJ5e0y1B+wkg9bDaKoct6fhD5uLpS++7upYSPlSMkXVw+SaCgV lik3CMxweg3mEtm15ch9p0WHFsJkwyRTSOQN0iOcbJ9qH5YIV2ZJ6OXXdsvS80uwThRi qbZqlMy8D97ZrfDqSC+4uspGrqcEvg333aJo2qOyTTIJdm9xC3ufK8m+UFAY5uvN9+4f IHTEhS1c/a/wxOu3NxudDJW46d3nvuKLvBL0DQ3Obd6OA4HiqiQAACLn/+ewUatPxNOR wdO1mAH9R1vquKb6qqgt8GMs2OLkNr5wB0intxqa4Y+D2WoK0EeHFEJCS3iIgoP5s/o1 5hug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NYe8hbuNO2F+947rtTAL9U16LoSJo/nRJegGr64dfss=; b=g9kxp1bzgl62jtaLwocczwBmU1NaxkgGYS6FEOWFaJTo9sa+evav1X6m5ompsIQaRH 7hMhBkvS0aXUw6+hFnel2rIfujGNIgcRGdtfsDYmvYb5AhaHuyg9jrdpCoJcHlqym+6i pHkeCdsyrd7FDUewD/CyVISI/akY4pKwXisXCBxQlcPTEdAahEJcThDegusgnSuGd3ip sMGbVUlG/dbO/O3AtSd1DT+CtdfCXTzkwA1D06usQYiwqlhaYqJBm8Mc25HU7CtxMFAI gO4/X7GwLuN8GLzTWui+oitZJK7bGO+D5O/YdJYcFbi/GDJbuMj9jYea1TdmLpBkkC2O ZlsA== X-Gm-Message-State: AOAM530NGLhyP4vnb0iuzvQloi+yNcT98DKPXQld1rmB/dhWHh7M4aTk wemtMwqjRGHplln1Y1HrWVSgljLO/uy/kRu3MfQ= X-Google-Smtp-Source: ABdhPJx1FU7UEBI1fnOo55CdAQcTRo4Oxgfs9PLjZan9hn1b1MGaQOcG6t5TeNsH5WRNkiKFjNWmlv3TXgpVbkJOG8s= X-Received: by 2002:a05:6e02:1be4:: with SMTP id y4mr22334230ilv.295.1634716065484; Wed, 20 Oct 2021 00:47:45 -0700 (PDT) MIME-Version: 1.0 References: <20211014095444.630505-1-harry.van.haaren@intel.com> In-Reply-To: From: Jerin Jacob Date: Wed, 20 Oct 2021 13:17:19 +0530 Message-ID: To: Pavan Nikhilesh Bhagavatula Cc: Harry van Haaren , "dev@dpdk.org" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [EXT] [PATCH] app/test-eventdev: fix terminal colour after control-c exit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Oct 18, 2021 at 6:24 PM Pavan Nikhilesh Bhagavatula wrote: > > >Before this commit, a Control^C exit of the test-eventdev application > >would print the worker packet percentages, and leave the terminal with > >a green colour despite the colour reset being issued after the newline. > >By moving the colour reset command before the \n the issue is fixed. > > > >Fixes: 6b1a14a83a06 ("app/eventdev: add packet distribution logs") > > > >Signed-off-by: Harry van Haaren > > > > Acked-by: Pavan Nikhilesh Applied to dpdk-next-eventdev/for-main. Thanks. > > >--- > > > >Given this is an aesthetic only fix, I feel its not worth backporting. > >Cc: pbhagavatula@marvell.com> > > > >--- > > app/test-eventdev/test_perf_common.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > >diff --git a/app/test-eventdev/test_perf_common.c b/app/test- > >eventdev/test_perf_common.c > >index e0d9f05ecd..a1b8dd72ee 100644 > >--- a/app/test-eventdev/test_perf_common.c > >+++ b/app/test-eventdev/test_perf_common.c > >@@ -19,7 +19,7 @@ perf_test_result(struct evt_test *test, struct > >evt_options *opt) > > total += t->worker[i].processed_pkts; > > for (i = 0; i < t->nb_workers; i++) > > printf("Worker %d packets: "CLGRN"%"PRIx64" > >"CLNRM"percentage:" > >- CLGRN" %3.2f\n"CLNRM, i, > >+ CLGRN" %3.2f"CLNRM"\n", i, > > t->worker[i].processed_pkts, > > (((double)t- > >>worker[i].processed_pkts)/total) > > * 100); > >-- > >2.30.2 >