1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
5 #include "e1000_logs.h"
7 /* declared as extern in e1000_logs.h */
8 int e1000_logtype_init;
9 int e1000_logtype_driver;
11 /* avoids double registering of logs if EM and IGB drivers are in use */
12 static int e1000_log_initialized;
15 e1000_igb_init_log(void)
17 if (!e1000_log_initialized) {
18 e1000_logtype_init = rte_log_register("pmd.net.e1000.init");
19 if (e1000_logtype_init >= 0)
20 rte_log_set_level(e1000_logtype_init, RTE_LOG_NOTICE);
21 e1000_logtype_driver = rte_log_register("pmd.net.e1000.driver");
22 if (e1000_logtype_driver >= 0)
23 rte_log_set_level(e1000_logtype_driver, RTE_LOG_NOTICE);
24 e1000_log_initialized = 1;