projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move completed trace archive chunks to an "archives" sub-folder
[lttng-tools.git]
/
extras
/
bindings
/
swig
/
python
/
lttng.i.in
diff --git
a/extras/bindings/swig/python/lttng.i.in
b/extras/bindings/swig/python/lttng.i.in
index e48bf6d8e57a6e229d4ed76d62ad7f340916e586..d74e08478268f6ea23ed68728753d734d1eb76b0 100644
(file)
--- a/
extras/bindings/swig/python/lttng.i.in
+++ b/
extras/bindings/swig/python/lttng.i.in
@@
-979,7
+979,7
@@
struct lttng_channel {
%extend {
char *__repr__() {
static char temp[512];
%extend {
char *__repr__() {
static char temp[512];
- s
printf(temp
, "lttng.Channel; name('%s'), enabled(%s)",
+ s
nprintf(temp, sizeof(temp)
, "lttng.Channel; name('%s'), enabled(%s)",
$self->name, $self->enabled ? "True" : "False");
return &temp[0];
}
$self->name, $self->enabled ? "True" : "False");
return &temp[0];
}
@@
-994,8
+994,8
@@
struct lttng_session {
%extend {
char *__repr__() {
%extend {
char *__repr__() {
- static char temp[512];
- s
printf(temp
, "lttng.Session; name('%s'), path('%s'), enabled(%s)",
+ static char temp[
PATH_MAX + NAME_MAX +
512];
+ s
nprintf(temp, sizeof(temp)
, "lttng.Session; name('%s'), path('%s'), enabled(%s)",
$self->name, $self->path,
$self->enabled ? "True" : "False");
return &temp[0];
$self->name, $self->path,
$self->enabled ? "True" : "False");
return &temp[0];
This page took
0.023817 seconds
and
4
git commands to generate.