Fix warning when building Python bindings
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 23 Feb 2016 20:18:18 +0000 (15:18 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 23 Feb 2016 20:51:13 +0000 (15:51 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
extras/bindings/swig/python/lttng.i.in

index 145b0f8e1966aa0773201cb6f90e2241b9de0575..4349d93d000ea7270c75fc008527b4f0ed0eeea1 100644 (file)
@@ -9,6 +9,7 @@ multiple concurrent processes and threads. Tracing across multiple systems is al
 %module(docstring=DOCSTRING) lttng
 
 %include "typemaps.i"
+%include "stdint.i"
 %include "pyabc.i"
 %{
 #define SWIG_FILE_WITH_INIT
@@ -999,8 +1000,8 @@ struct lttng_channel_attr {
                                sprintf(evout, "%i", $self->output);
                                break;
                        }
-                       sprintf(temp, "lttng.ChannelAttr; overwrite(%i), subbuf_size(%lu), "
-                               "num_subbuf(%lu), switch_timer_interval(%u), "
+                       sprintf(temp, "lttng.ChannelAttr; overwrite(%i), subbuf_size(%"PRIu64"), "
+                               "num_subbuf(%"PRIu64"), switch_timer_interval(%u), "
                                "read_timer_interval(%u), output(%s)",
                                $self->overwrite, $self->subbuf_size, $self->num_subbuf,
                                $self->switch_timer_interval, $self->read_timer_interval,
This page took 0.026897 seconds and 4 git commands to generate.