eal/windows: add missing SPDX license tag
[dpdk.git] / drivers / compress / octeontx / otx_zip_pmd.c
index 9e00c86..bee90fc 100644 (file)
@@ -11,8 +11,6 @@
 
 #include "otx_zip.h"
 
-int octtx_zip_logtype_driver;
-
 static const struct rte_compressdev_capabilities
                                octtx_zip_pmd_capabilities[] = {
        {       .algo = RTE_COMP_ALGO_DEFLATE,
@@ -406,7 +404,7 @@ zip_pmd_qp_setup(struct rte_compressdev *dev, uint16_t qp_id,
 
        qp->name = name;
 
-       /* Create completion queue upto max_inflight_ops */
+       /* Create completion queue up to max_inflight_ops */
        qp->processed_pkts = zip_pmd_qp_create_processed_pkts_ring(qp,
                                                max_inflight_ops, socket_id);
        if (qp->processed_pkts == NULL)
@@ -648,10 +646,4 @@ static struct rte_pci_driver octtx_zip_pmd = {
 
 RTE_PMD_REGISTER_PCI(COMPRESSDEV_NAME_ZIP_PMD, octtx_zip_pmd);
 RTE_PMD_REGISTER_PCI_TABLE(COMPRESSDEV_NAME_ZIP_PMD, pci_id_octtx_zipvf_table);
-
-RTE_INIT(octtx_zip_init_log)
-{
-       octtx_zip_logtype_driver = rte_log_register("pmd.compress.octeontx");
-       if (octtx_zip_logtype_driver >= 0)
-               rte_log_set_level(octtx_zip_logtype_driver, RTE_LOG_INFO);
-}
+RTE_LOG_REGISTER(octtx_zip_logtype_driver, pmd.compress.octeontx, INFO);