Home
last modified time | relevance | path

Searched refs:error_buf (Results 1 – 2 of 2) sorted by relevance

/tools/lib/subcmd/
Dparse-options.c18 char *error_buf; variable
679 astrcatf(&error_buf, "unknown option `%s'", in parse_options_subcommand()
682 astrcatf(&error_buf, "unknown switch `%c'", *ctx.opt); in parse_options_subcommand()
872 if (error_buf) { in usage_with_options_internal()
873 fprintf(stderr, " Error: %s\n", error_buf); in usage_with_options_internal()
874 zfree(&error_buf); in usage_with_options_internal()
918 char *tmp = error_buf; in usage_with_options_msg()
921 if (vasprintf(&error_buf, fmt, ap) == -1) in usage_with_options_msg()
/tools/lib/traceevent/
Dparse-filter.c33 static void show_error(char *error_buf, const char *fmt, ...) in show_error() argument
46 strcpy(error_buf, input); in show_error()
47 error_buf[len] = '\n'; in show_error()
49 error_buf[len+i] = ' '; in show_error()
50 error_buf[len + i] = '^'; in show_error()
51 error_buf[len + i + 1] = '\n'; in show_error()
56 vsnprintf(error_buf + len, TEP_FILTER_ERROR_BUFSZ - len, fmt, ap); in show_error()