]> git.droids-corp.org - dpdk.git/blobdiff - drivers/common/qat/qat_logs.c
net/mlx5: fix setting of Rx hash fields
[dpdk.git] / drivers / common / qat / qat_logs.c
index fa3df85f0f9f046918a0488fe7f05e6f2fbc0c99..f97aba19d7c45cac8acada969204a84f55637007 100644 (file)
@@ -19,14 +19,11 @@ qat_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
        if (level > (uint32_t)(rte_log_get_level(logtype)))
                return 0;
 
-       rte_hexdump(rte_logs.file == NULL ? stderr : rte_logs.file,
-                               title, buf, len);
+       rte_hexdump(rte_log_get_stream(), title, buf, len);
        return 0;
 }
 
-RTE_INIT(qat_pci_init_log);
-static void
-qat_pci_init_log(void)
+RTE_INIT(qat_pci_init_log)
 {
        /* Non-data-path logging for pci device and all services */
        qat_gen_logtype = rte_log_register("pmd.qat_general");