mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-25 22:10:38 +00:00
libsepol/cil: Add cil_get_log_level() function
Add the function cil_get_log_level() that returns the current log level for CIL. Signed-off-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
71291385cf
commit
3ffb84ec9e
@ -70,3 +70,8 @@ void cil_set_log_level(enum cil_log_level lvl)
|
|||||||
{
|
{
|
||||||
cil_log_level = lvl;
|
cil_log_level = lvl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum cil_log_level cil_get_log_level(void)
|
||||||
|
{
|
||||||
|
return cil_log_level;
|
||||||
|
}
|
||||||
|
@ -38,4 +38,6 @@
|
|||||||
__attribute__ ((format(printf, 2, 0))) void cil_vlog(enum cil_log_level lvl, const char *msg, va_list args);
|
__attribute__ ((format(printf, 2, 0))) void cil_vlog(enum cil_log_level lvl, const char *msg, va_list args);
|
||||||
__attribute__ ((format(printf, 2, 3))) void cil_log(enum cil_log_level lvl, const char *msg, ...);
|
__attribute__ ((format(printf, 2, 3))) void cil_log(enum cil_log_level lvl, const char *msg, ...);
|
||||||
|
|
||||||
|
enum cil_log_level cil_get_log_level(void);
|
||||||
|
|
||||||
#endif // CIL_LOG_H_
|
#endif // CIL_LOG_H_
|
||||||
|
Loading…
Reference in New Issue
Block a user