projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename statedump and dl events and fields
[lttng-ust.git]
/
snprintf
/
core.c
diff --git
a/snprintf/core.c
b/snprintf/core.c
index cbacdb541070c7010f0bec720d34a6ec8220b13b..966b588721aaf439bfd6ecfa1b4e74a617486a4f 100644
(file)
--- a/
snprintf/core.c
+++ b/
snprintf/core.c
@@
-18,6
+18,19
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <
lttng/
usterr-signal-safe.h>
+#include <usterr-signal-safe.h>
volatile enum ust_loglevel ust_loglevel;
volatile enum ust_loglevel ust_loglevel;
+
+void init_usterr(void)
+{
+ char *ust_debug;
+
+ if (ust_loglevel == UST_LOGLEVEL_UNKNOWN) {
+ ust_debug = getenv("LTTNG_UST_DEBUG");
+ if (ust_debug)
+ ust_loglevel = UST_LOGLEVEL_DEBUG;
+ else
+ ust_loglevel = UST_LOGLEVEL_NORMAL;
+ }
+}
This page took
0.023733 seconds
and
4
git commands to generate.