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: get level for dynamic types
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_log.h
diff --git
a/lib/librte_eal/common/include/rte_log.h
b/lib/librte_eal/common/include/rte_log.h
index
3419138
..
ec8dba7
100644
(file)
--- a/
lib/librte_eal/common/include/rte_log.h
+++ b/
lib/librte_eal/common/include/rte_log.h
@@
-174,6
+174,16
@@
void rte_set_log_type(uint32_t type, int enable);
__rte_deprecated
uint32_t rte_get_log_type(void);
__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.
*
/**
* Set the log level for a given type.
*