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
log: introduce logtype register macro
[dpdk.git]
/
drivers
/
crypto
/
nitrox
/
nitrox_logs.c
diff --git
a/drivers/crypto/nitrox/nitrox_logs.c
b/drivers/crypto/nitrox/nitrox_logs.c
index
007056c
..
2639515
100644
(file)
--- a/
drivers/crypto/nitrox/nitrox_logs.c
+++ b/
drivers/crypto/nitrox/nitrox_logs.c
@@
-4,11
+4,4
@@
#include <rte_log.h>
#include <rte_log.h>
-int nitrox_logtype;
-
-RTE_INIT(nitrox_init_log)
-{
- nitrox_logtype = rte_log_register("pmd.crypto.nitrox");
- if (nitrox_logtype >= 0)
- rte_log_set_level(nitrox_logtype, RTE_LOG_NOTICE);
-}
+RTE_LOG_REGISTER(nitrox_logtype, pmd.crypto.nitrox, NOTICE);