log: introduce logtype register macro
[dpdk.git] / drivers / crypto / nitrox / nitrox_logs.c
index 007056c..2639515 100644 (file)
@@ -4,11 +4,4 @@
 
 #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);