X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=snprintf%2Fcore.c;h=c017b832220b0230ed2bb9cdeb8eed51fe451286;hb=c452ee17f28041e29c224524e8eefe10a845adb7;hp=966b588721aaf439bfd6ecfa1b4e74a617486a4f;hpb=ab4c0f44fad08a6766e03cecac56f87e9283b6c2;p=lttng-ust.git diff --git a/snprintf/core.c b/snprintf/core.c index 966b5887..c017b832 100644 --- a/snprintf/core.c +++ b/snprintf/core.c @@ -27,6 +27,11 @@ void init_usterr(void) char *ust_debug; if (ust_loglevel == UST_LOGLEVEL_UNKNOWN) { + /* + * This getenv is not part of lttng_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;