X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Fenable_channels.c;h=0bca44a6b3eb6784dcc410737761d36cf334d27e;hp=1a9611be24e086756ce64659d034259d38838bd2;hb=048e21597c85bd22503e7971fad045b607905d38;hpb=7d29a2477524f7ee2ee46a94e538e6141f5ecc0e diff --git a/lttng/commands/enable_channels.c b/lttng/commands/enable_channels.c index 1a9611be2..0bca44a6b 100644 --- a/lttng/commands/enable_channels.c +++ b/lttng/commands/enable_channels.c @@ -3,8 +3,8 @@ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * as published by the Free Software Foundation; only version 2 + * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -24,10 +24,11 @@ #include #include #include +#include -#include "cmd.h" -#include "conf.h" -#include "utils.h" +#include "../cmd.h" +#include "../conf.h" +#include "../utils.h" static char *opt_channels; static char *opt_kernel; @@ -137,7 +138,7 @@ static int enable_channel(void) ret = CMD_NOT_IMPLEMENTED; goto error; } else { - ERR("Please specify a tracer (kernel or user-space)"); + ERR("Please specify a tracer (--kernel or --userspace)"); goto error; } @@ -197,11 +198,11 @@ int cmd_enable_channels(int argc, const char **argv) break; case OPT_SUBBUF_SIZE: chan.attr.subbuf_size = atol(poptGetOptArg(pc)); - DBG("Channel subbuf size set to %lu", chan.attr.subbuf_size); + DBG("Channel subbuf size set to %" PRIu64, chan.attr.subbuf_size); break; case OPT_NUM_SUBBUF: chan.attr.num_subbuf = atoi(poptGetOptArg(pc)); - DBG("Channel subbuf num set to %lu", chan.attr.num_subbuf); + DBG("Channel subbuf num set to %" PRIu64, chan.attr.num_subbuf); break; case OPT_SWITCH_TIMER: chan.attr.switch_timer_interval = atoi(poptGetOptArg(pc));