net/mlx5: fix setting of Rx hash fields
[dpdk.git] / drivers / common / qat / qat_logs.c
index fa3df85..f97aba1 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");