git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
eal: initialize logging before bus
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_log.c
diff --git
a/lib/librte_eal/common/eal_common_log.c
b/lib/librte_eal/common/eal_common_log.c
index
0e3b932
..
b62b0a6
100644
(file)
--- a/
lib/librte_eal/common/eal_common_log.c
+++ b/
lib/librte_eal/common/eal_common_log.c
@@
-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)
{