test/compress: add trace with device name

Message ID 1531220834-30217-1-git-send-email-fiona.trahe@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Pablo de Lara Guarch
Headers
Series test/compress: add trace with device name |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Fiona Trahe July 10, 2018, 11:07 a.m. UTC
  Print out name of device on which test is running at start of
test suite.

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
---
 test/test/test_compressdev.c | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

De Lara Guarch, Pablo July 13, 2018, 2:17 p.m. UTC | #1
> -----Original Message-----
> From: Trahe, Fiona
> Sent: Tuesday, July 10, 2018 12:07 PM
> To: dev@dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Trahe, Fiona
> <fiona.trahe@intel.com>
> Subject: [PATCH] test/compress: add trace with device name
> 
> Print out name of device on which test is running at start of test suite.
> 
> Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>

Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
  
De Lara Guarch, Pablo July 13, 2018, 2:31 p.m. UTC | #2
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of De Lara Guarch, Pablo
> Sent: Friday, July 13, 2018 3:18 PM
> To: Trahe, Fiona <fiona.trahe@intel.com>; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] test/compress: add trace with device name
> 
> 
> 
> > -----Original Message-----
> > From: Trahe, Fiona
> > Sent: Tuesday, July 10, 2018 12:07 PM
> > To: dev@dpdk.org
> > Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Trahe,
> > Fiona <fiona.trahe@intel.com>
> > Subject: [PATCH] test/compress: add trace with device name
> >
> > Print out name of device on which test is running at start of test suite.
> >
> > Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> 
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

Applied to dpdk-next-crypto.
Thanks,

Pablo
  

Patch

diff --git a/test/test/test_compressdev.c b/test/test/test_compressdev.c
index f960963..56dcc78 100644
--- a/test/test/test_compressdev.c
+++ b/test/test/test_compressdev.c
@@ -80,6 +80,9 @@  testsuite_setup(void)
 		return TEST_FAILED;
 	}
 
+	RTE_LOG(NOTICE, USER1, "Running tests on device %s\n",
+				rte_compressdev_name_get(0));
+
 	uint32_t max_buf_size = 0;
 	for (i = 0; i < RTE_DIM(compress_test_bufs); i++)
 		max_buf_size = RTE_MAX(max_buf_size,