Home
last modified time | relevance | path

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

/tools/perf/util/
Dparse-options.c10 static struct strbuf error_buf = STRBUF_INIT; variable
545 strbuf_addf(&error_buf, "unknown option `%s'", in parse_options_subcommand()
548 strbuf_addf(&error_buf, "unknown switch `%c'", in parse_options_subcommand()
733 if (strbuf_avail(&error_buf)) { in usage_with_options_internal()
734 fprintf(stderr, " Error: %s\n", error_buf.buf); in usage_with_options_internal()
735 strbuf_release(&error_buf); in usage_with_options_internal()
784 strbuf_addv(&error_buf, fmt, ap); in usage_with_options_msg()
/tools/lib/traceevent/
Dparse-filter.c41 static void show_error(char *error_buf, const char *fmt, ...) in show_error() argument
54 strcpy(error_buf, input); in show_error()
55 error_buf[len] = '\n'; in show_error()
57 error_buf[len+i] = ' '; in show_error()
58 error_buf[len + i] = '^'; in show_error()
59 error_buf[len + i + 1] = '\n'; in show_error()
64 vsnprintf(error_buf + len, PEVENT_FILTER_ERROR_BUFSZ - len, fmt, ap); in show_error()