New upstream version 17.08
[deb_dpdk.git] / lib / librte_eal / common / include / rte_log.h
index 3419138..ec8dba7 100644 (file)
@@ -174,6 +174,16 @@ void rte_set_log_type(uint32_t type, int enable);
 __rte_deprecated
 uint32_t rte_get_log_type(void);
 
+/**
+ * Get the log level for a given type.
+ *
+ * @param logtype
+ *   The log type identifier.
+ * @return
+ *   0 on success, a negative value if logtype is invalid.
+ */
+int rte_log_get_level(uint32_t logtype);
+
 /**
  * Set the log level for a given type.
  *