eal: initialize logging before bus
[dpdk.git] / lib / librte_eal / common / eal_common_log.c
index 0e3b932..b62b0a6 100644 (file)
@@ -289,7 +289,8 @@ static const struct logtype logtype_strings[] = {
        {RTE_LOGTYPE_USER8,      "user8"}
 };
 
-RTE_INIT(rte_log_init);
+/* Logging should be first initialzer (before drivers and bus) */
+RTE_INIT_PRIO(rte_log_init, 101);
 static void
 rte_log_init(void)
 {