projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: remove empty line in lttng create command
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
enable_channels.c
diff --git
a/src/bin/lttng/commands/enable_channels.c
b/src/bin/lttng/commands/enable_channels.c
index 3314bde0d6da4f7ff37d8747d2b1129e746bda92..3a7f9fd06b937141f7493c595ddc16f399233cec 100644
(file)
--- a/
src/bin/lttng/commands/enable_channels.c
+++ b/
src/bin/lttng/commands/enable_channels.c
@@
-244,7
+244,7
@@
static int enable_channel(char *session_name)
void *extended_ptr;
/* Validate channel name's length */
void *extended_ptr;
/* Validate channel name's length */
- if (strlen(channel_name) >=
NAME_MAX
) {
+ if (strlen(channel_name) >=
sizeof(chan_opts.name)
) {
ERR("Channel name is too long (max. %zu characters)",
sizeof(chan_opts.name) - 1);
error = 1;
ERR("Channel name is too long (max. %zu characters)",
sizeof(chan_opts.name) - 1);
error = 1;
@@
-510,7
+510,9
@@
int cmd_enable_channels(int argc, const char **argv)
goto end;
}
chan_opts.attr.switch_timer_interval = (uint32_t) v;
goto end;
}
chan_opts.attr.switch_timer_interval = (uint32_t) v;
- DBG("Channel switch timer interval set to %d", chan_opts.attr.switch_timer_interval);
+ DBG("Channel switch timer interval set to %d %s",
+ chan_opts.attr.switch_timer_interval,
+ USEC_UNIT);
break;
}
case OPT_READ_TIMER:
break;
}
case OPT_READ_TIMER:
@@
-532,7
+534,9
@@
int cmd_enable_channels(int argc, const char **argv)
goto end;
}
chan_opts.attr.read_timer_interval = (uint32_t) v;
goto end;
}
chan_opts.attr.read_timer_interval = (uint32_t) v;
- DBG("Channel read timer interval set to %d", chan_opts.attr.read_timer_interval);
+ DBG("Channel read timer interval set to %d %s",
+ chan_opts.attr.read_timer_interval,
+ USEC_UNIT);
break;
}
case OPT_MONITOR_TIMER:
break;
}
case OPT_MONITOR_TIMER:
@@
-549,7
+553,9
@@
int cmd_enable_channels(int argc, const char **argv)
}
opt_monitor_timer.interval = (uint64_t) v;
opt_monitor_timer.set = true;
}
opt_monitor_timer.interval = (uint64_t) v;
opt_monitor_timer.set = true;
- DBG("Channel monitor timer interval set to %" PRIu64" (µs)", opt_monitor_timer.interval);
+ DBG("Channel monitor timer interval set to %" PRIu64 " %s",
+ opt_monitor_timer.interval,
+ USEC_UNIT);
break;
}
case OPT_BLOCKING_TIMEOUT:
break;
}
case OPT_BLOCKING_TIMEOUT:
@@
-597,8
+603,9
@@
int cmd_enable_channels(int argc, const char **argv)
opt_blocking_timeout.value = (int64_t) v;
opt_blocking_timeout.set = true;
opt_blocking_timeout.value = (int64_t) v;
opt_blocking_timeout.set = true;
- DBG("Channel blocking timeout set to %" PRId64 "
µ
s%s",
+ DBG("Channel blocking timeout set to %" PRId64 "
%
s%s",
opt_blocking_timeout.value,
opt_blocking_timeout.value,
+ USEC_UNIT,
opt_blocking_timeout.value == 0 ?
" (non-blocking)" : "");
break;
opt_blocking_timeout.value == 0 ?
" (non-blocking)" : "");
break;
This page took
0.025131 seconds
and
4
git commands to generate.