X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=snprintf%2Fcore.c;h=8c4eddeca1a208f90bc2be16cac9153e3adb82ea;hb=f27f1026353ae61083b7a2221f912b0299095a04;hp=c4d9e0b13107b24967762d2b1b07d24ef40e6b6a;hpb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;p=lttng-ust.git diff --git a/snprintf/core.c b/snprintf/core.c index c4d9e0b1..8c4eddec 100644 --- a/snprintf/core.c +++ b/snprintf/core.c @@ -6,22 +6,22 @@ #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 + * This getenv is not part of lttng_ust_getenv() because it * is required to print ERR() performed during getenv * initialization. */ 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; } }