]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_log.c
eal: initialize logging before bus
[dpdk.git] / lib / librte_eal / common / eal_common_log.c
index 0e3b9320954fc9d1bf3e8c47709ea05fdebb91e5..b62b0a6d61c8e2e4e48661693eb69cf870182437 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)
 {