X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=snprintf%2Fcore.c;h=d0f60a106e6f5d389b8c8a5a93c8a584ce669c79;hb=2b6f437483769831e50886b9f3bc4710b28f4ac9;hp=c4d9e0b13107b24967762d2b1b07d24ef40e6b6a;hpb=2a8db464c4d99838a3efb280cc10925f0cc3461d;p=lttng-ust.git diff --git a/snprintf/core.c b/snprintf/core.c index c4d9e0b1..d0f60a10 100644 --- a/snprintf/core.c +++ b/snprintf/core.c @@ -6,13 +6,13 @@ #include -volatile enum ust_loglevel ust_loglevel; +volatile enum ust_err_loglevel ust_err_loglevel; -void init_usterr(void) +void ust_err_init(void) { char *ust_debug; - if (ust_loglevel == UST_LOGLEVEL_UNKNOWN) { + if (ust_err_loglevel == UST_ERR_LOGLEVEL_UNKNOWN) { /* * This getenv is not part of lttng_getenv() because it * is required to print ERR() performed during getenv @@ -20,8 +20,8 @@ void init_usterr(void) */ ust_debug = getenv("LTTNG_UST_DEBUG"); if (ust_debug) - ust_loglevel = UST_LOGLEVEL_DEBUG; + ust_err_loglevel = UST_ERR_LOGLEVEL_DEBUG; else - ust_loglevel = UST_LOGLEVEL_NORMAL; + ust_err_loglevel = UST_ERR_LOGLEVEL_NORMAL; } }