app/eventdev: fix terminal colour after control-c exit
authorHarry van Haaren <harry.van.haaren@intel.com>
Thu, 14 Oct 2021 09:54:44 +0000 (09:54 +0000)
committerJerin Jacob <jerinj@marvell.com>
Thu, 21 Oct 2021 08:16:00 +0000 (10:16 +0200)
commitc0900d33443e0a9caca0727995d4ffb9587853bc
treeeacbe22628489956f2594f9018543dffa23f9f61
parentfcf782051cd393237df54de9002b22d17ef804a4
app/eventdev: fix terminal colour after control-c exit

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")
Cc: stable@dpdk.org
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
app/test-eventdev/test_perf_common.c