Move to kernel style SPDX license identifiers
[lttng-ust.git] / snprintf / core.c
CommitLineData
7df75321 1/*
c0c0989a 2 * SPDX-License-Identifier: LGPL-2.1-only
7df75321
MD
3 *
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7df75321
MD
5 */
6
44c72f10 7#include <usterr-signal-safe.h>
7df75321
MD
8
9volatile enum ust_loglevel ust_loglevel;
828c801e
MD
10
11void init_usterr(void)
12{
13 char *ust_debug;
14
15 if (ust_loglevel == UST_LOGLEVEL_UNKNOWN) {
6f626d28
MD
16 /*
17 * This getenv is not part of lttng_getenv() because it
18 * is required to print ERR() performed during getenv
19 * initialization.
20 */
828c801e
MD
21 ust_debug = getenv("LTTNG_UST_DEBUG");
22 if (ust_debug)
23 ust_loglevel = UST_LOGLEVEL_DEBUG;
24 else
25 ust_loglevel = UST_LOGLEVEL_NORMAL;
26 }
27}
This page took 0.028899 seconds and 4 git commands to generate.