projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove calibrate command from lttng CLI
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
status.c
diff --git
a/src/bin/lttng/commands/status.c
b/src/bin/lttng/commands/status.c
index 693527535418cb647a6b8400ccc247d6cd4e39f1..5daabdac2f7ec62dd2b67d56d029b5f8a0ad8221 100644
(file)
--- a/
src/bin/lttng/commands/status.c
+++ b/
src/bin/lttng/commands/status.c
@@
-40,15
+40,6
@@
static struct poptOption long_options[] = {
{0, 0, 0, 0, 0, 0, 0}
};
{0, 0, 0, 0, 0, 0, 0}
};
-static void usage(FILE *ofp)
-{
- fprintf(ofp, "Usage: lttng status [options]\n");
- fprintf(ofp, "\n");
- fprintf(ofp, "Options:\n");
- fprintf(ofp, " -h, --help Show this help\n");
- fprintf(ofp, " --list-options List options\n");
-}
-
static int status(void)
{
const char *argv[2];
static int status(void)
{
const char *argv[2];
@@
-89,7
+80,6
@@
int cmd_status(int argc, const char **argv)
list_cmd_options(stdout, long_options);
goto end;
default:
list_cmd_options(stdout, long_options);
goto end;
default:
- usage(stderr);
ret = CMD_UNDEFINED;
goto end;
}
ret = CMD_UNDEFINED;
goto end;
}
@@
-97,7
+87,6
@@
int cmd_status(int argc, const char **argv)
if (poptPeekArg(pc) != NULL) {
ERR("This command does not accept positional arguments.\n");
if (poptPeekArg(pc) != NULL) {
ERR("This command does not accept positional arguments.\n");
- usage(stderr);
ret = CMD_UNDEFINED;
goto end;
}
ret = CMD_UNDEFINED;
goto end;
}
This page took
0.024345 seconds
and
4
git commands to generate.