patch 'app/eventdev: fix terminal colour after control-c exit' has been queued to stable release 19.11.11

christian.ehrhardt at canonical.com christian.ehrhardt at canonical.com
Tue Nov 30 17:34:54 CET 2021


Hi,

FYI, your patch has been queued to stable release 19.11.11

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before December 10th 2021. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/cpaelzer/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/cpaelzer/dpdk-stable-queue/commit/12426ec54bb0c4ff89a79e897823994b21564a44

Thanks.

Christian Ehrhardt <christian.ehrhardt at canonical.com>

---
>From 12426ec54bb0c4ff89a79e897823994b21564a44 Mon Sep 17 00:00:00 2001
From: Harry van Haaren <harry.van.haaren at intel.com>
Date: Thu, 14 Oct 2021 09:54:44 +0000
Subject: [PATCH] app/eventdev: fix terminal colour after control-c exit

[ upstream commit c0900d33443e0a9caca0727995d4ffb9587853bc ]

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 <harry.van.haaren at intel.com>
Acked-by: Pavan Nikhilesh <pbhagavatula at 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 b3af4bfeca..958845c26b 100644
--- a/app/test-eventdev/test_perf_common.c
+++ b/app/test-eventdev/test_perf_common.c
@@ -17,7 +17,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.34.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-11-30 16:50:11.179042680 +0100
+++ 0090-app-eventdev-fix-terminal-colour-after-control-c-exi.patch	2021-11-30 16:50:05.882874204 +0100
@@ -1 +1 @@
-From c0900d33443e0a9caca0727995d4ffb9587853bc Mon Sep 17 00:00:00 2001
+From 12426ec54bb0c4ff89a79e897823994b21564a44 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c0900d33443e0a9caca0727995d4ffb9587853bc ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 660d5a0364..97bad18a1f 100644
+index b3af4bfeca..958845c26b 100644
@@ -24 +25 @@
-@@ -19,7 +19,7 @@ perf_test_result(struct evt_test *test, struct evt_options *opt)
+@@ -17,7 +17,7 @@ perf_test_result(struct evt_test *test, struct evt_options *opt)


More information about the stable mailing list