Make "please specify tracer" comment more helpful
[lttng-tools.git] / lttng / commands / enable_channels.c
index f149cc74584a122670673df6351f0636bc1f8e27..0bca44a6b3eb6784dcc410737761d36cf334d27e 100644 (file)
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
+#include <inttypes.h>
 
-#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));
This page took 0.023759 seconds and 4 git commands to generate.