diff --git a/doc/applications.md b/doc/applications.md index 9ab09f960..3bfd54a2e 100644 --- a/doc/applications.md +++ b/doc/applications.md @@ -45,7 +45,7 @@ Param | Long Param | Type | Default | Descript -W | --pci-whitelist | B:D:F | | @ref cmd_arg_pci_blacklist_whitelist. -R | --huge-unlink | flag | | @ref cmd_arg_huge_unlink | | --huge-dir | string | the first discovered | allocate hugepages from a specific mount --L | --traceflag | string | | @ref cmd_arg_debug_log_flags +-L | --logflag | string | | @ref cmd_arg_debug_log_flags ### Configuration file {#cmd_arg_config_file} @@ -141,7 +141,7 @@ process as soon as they're created, but is not compatible with `--shm-id`. ### Debug log {#cmd_arg_debug_log_flags} Enable a specific debug log type. This option can be used more than once. A list of -all available types is provided in the `--help` output, with `--traceflag all` +all available types is provided in the `--help` output, with `--logflag all` enabling all of them. Debug logs are only available in debug builds of SPDK. ## CPU mask {#cpu_mask} diff --git a/lib/event/app.c b/lib/event/app.c index feda6f392..ca392cb56 100644 --- a/lib/event/app.c +++ b/lib/event/app.c @@ -104,8 +104,8 @@ static const struct option g_cmdline_options[] = { {"no-pci", no_argument, NULL, NO_PCI_OPT_IDX}, #define PCI_BLACKLIST_OPT_IDX 'B' {"pci-blacklist", required_argument, NULL, PCI_BLACKLIST_OPT_IDX}, -#define TRACEFLAG_OPT_IDX 'L' - {"traceflag", required_argument, NULL, TRACEFLAG_OPT_IDX}, +#define LOGFLAG_OPT_IDX 'L' + {"logflag", required_argument, NULL, LOGFLAG_OPT_IDX}, #define HUGE_UNLINK_OPT_IDX 'R' {"huge-unlink", no_argument, NULL, HUGE_UNLINK_OPT_IDX}, #define PCI_WHITELIST_OPT_IDX 'W' @@ -896,7 +896,7 @@ spdk_app_parse_args(int argc, char **argv, struct spdk_app_opts *opts, goto out; } break; - case TRACEFLAG_OPT_IDX: + case LOGFLAG_OPT_IDX: #ifndef DEBUG fprintf(stderr, "%s must be built with CONFIG_DEBUG=y for -L flag\n", argv[0]); diff --git a/lib/log/log_flags.c b/lib/log/log_flags.c index edaca8283..d83722d27 100644 --- a/lib/log/log_flags.c +++ b/lib/log/log_flags.c @@ -188,7 +188,7 @@ spdk_log_usage(FILE *f, const char *log_arg) { #ifdef DEBUG struct spdk_log_flag *flag; - fprintf(f, " %s, --traceflag enable debug log flag (all", log_arg); + fprintf(f, " %s, --logflag enable debug log flag (all", log_arg); TAILQ_FOREACH(flag, &g_log_flags, tailq) { fprintf(f, ", %s", flag->name); @@ -196,7 +196,7 @@ spdk_log_usage(FILE *f, const char *log_arg) fprintf(f, ")\n"); #else - fprintf(f, " %s, --traceflag enable debug log flag (not supported" + fprintf(f, " %s, --logflag enable debug log flag (not supported" " - must rebuild with --enable-debug)\n", log_arg); #endif }