X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libust%2Ftracectl.c;h=25fa4d57ecde33954791d2bca5a21a4639af9a2d;hb=fbae86d664c12e450d3cb702b602701d37781b41;hp=b73fa7cdf88f05fa106dc8ba01b5b6f9cfa9ce19;hpb=08b070db024044d21779c63f721673e06032eff8;p=lttng-ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index b73fa7cd..25fa4d57 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -355,7 +355,7 @@ static int set_subbuf_size(const char *trace_name, const char *ch_name, } channel->subbuf_size = power; - DBG("the set_subbuf_size for the requested channel is %u", channel->subbuf_size); + DBG("the set_subbuf_size for the requested channel is %zu", channel->subbuf_size); unlock_traces: ltt_unlock_traces(); @@ -393,7 +393,7 @@ static int set_subbuf_num(const char *trace_name, const char *ch_name, } channel->subbuf_cnt = num; - DBG("the set_subbuf_cnt for the requested channel is %zd", channel->subbuf_cnt); + DBG("the set_subbuf_cnt for the requested channel is %u", channel->subbuf_cnt); unlock_traces: ltt_unlock_traces(); @@ -1232,6 +1232,7 @@ free_name: static void __attribute__((constructor)) init() { + struct timespec ts; int result; char* autoprobe_val = NULL; char* subbuffer_size_val = NULL; @@ -1266,7 +1267,7 @@ static void __attribute__((constructor)) init() create_listener(); /* Get clock the clock source type */ - struct timespec ts; + /* Default clock source */ ust_clock_source = CLOCK_TRACE; if (clock_gettime(ust_clock_source, &ts) != 0) {