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
common/octeontx2: fix memory mapping API usage
[dpdk.git]
/
lib
/
librte_pdump
/
rte_pdump.c
diff --git
a/lib/librte_pdump/rte_pdump.c
b/lib/librte_pdump/rte_pdump.c
index
f96709f
..
b3c8d5c
100644
(file)
--- a/
lib/librte_pdump/rte_pdump.c
+++ b/
lib/librte_pdump/rte_pdump.c
@@
-14,8
+14,9
@@
#define DEVICE_ID_SIZE 64
#define DEVICE_ID_SIZE 64
+RTE_LOG_REGISTER(pdump_logtype, lib.pdump, NOTICE);
+
/* Macro for printing using RTE_LOG */
/* Macro for printing using RTE_LOG */
-static int pdump_logtype;
#define PDUMP_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, pdump_logtype, "%s(): " fmt, \
__func__, ## args)
#define PDUMP_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, pdump_logtype, "%s(): " fmt, \
__func__, ## args)
@@
-560,10
+561,3
@@
rte_pdump_disable_by_deviceid(char *device_id, uint16_t queue,
return ret;
}
return ret;
}
-
-RTE_INIT(pdump_log)
-{
- pdump_logtype = rte_log_register("lib.pdump");
- if (pdump_logtype >= 0)
- rte_log_set_level(pdump_logtype, RTE_LOG_NOTICE);
-}