This function wasn't provided in the original commit.
Fixes:
4f0981e6ec6c ("eal: deprecate log functions")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <ciwillia@brocade.com>
rte_bus_find;
rte_bus_find_by_device;
rte_bus_find_by_name;
+ rte_log_get_level;
} DPDK_17.05;
return rte_log_get_global_level();
}
+int
+rte_log_get_level(uint32_t type)
+{
+ if (type >= rte_logs.dynamic_types_len)
+ return -1;
+
+ return rte_logs.dynamic_types[type].loglevel;
+}
+
/* Set global log type */
__rte_deprecated 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.
*
rte_bus_find;
rte_bus_find_by_device;
rte_bus_find_by_name;
+ rte_log_get_level;
} DPDK_17.05;