projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: don't print channel name on enable JUL event
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 815965bc4ba25256de830f0794cf357f2150db70..bf93386c46147eca75e33c59a13b9f8214f49ba4 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-869,6
+869,16
@@
end:
return home_dir;
}
return home_dir;
}
+/*
+ * Obtain the value of LTTNG_KMOD_PROBES environment variable, if exists.
+ * Otherwise returns an empty string.
+ */
+LTTNG_HIDDEN
+char *utils_get_kmod_probes_list(void)
+{
+ return getenv(DEFAULT_LTTNG_KMOD_PROBES);
+}
+
/*
* With the given format, fill dst with the time of len maximum siz.
*
/*
* With the given format, fill dst with the time of len maximum siz.
*
@@
-889,7
+899,7
@@
size_t utils_get_current_time_str(const char *format, char *dst, size_t len)
timeinfo = localtime(&rawtime);
ret = strftime(dst, len, format, timeinfo);
if (ret == 0) {
timeinfo = localtime(&rawtime);
ret = strftime(dst, len, format, timeinfo);
if (ret == 0) {
- ERR("Unable to strftime with format %s at dst %p of len %
l
u", format,
+ ERR("Unable to strftime with format %s at dst %p of len %
z
u", format,
dst, len);
}
dst, len);
}
This page took
0.023867 seconds
and
4
git commands to generate.