It is helpful when you want outside code to cooperate with and respect
log levels set in DPDK. Then you can avoid using duplicate incompatible
log code in the DPDK and non-DPDK parts of the app.
Signed-off-by: Matthew Hall <mhall@mhcomputing.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
[Thomas: add void to fix function signature]
rte_logs.level = (uint32_t)level;
}
+/* Get global log level */
+uint32_t
+rte_get_log_level(void)
+{
+ return rte_logs.level;
+}
+
/* Set global log type */
void
rte_set_log_type(uint32_t type, int enable)
*/
void rte_set_log_level(uint32_t level);
+/**
+ * Get the global log level.
+ */
+uint32_t rte_get_log_level(void);
+
/**
* Enable or disable the log type.
*