test/compress: log device name
authorFiona Trahe <fiona.trahe@intel.com>
Tue, 10 Jul 2018 11:07:14 +0000 (12:07 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Jul 2018 23:48:10 +0000 (01:48 +0200)
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>
test/test/test_compressdev.c

index f960963..56dcc78 100644 (file)
@@ -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,