perf ui/helpline: Introduce ui_helpline__vshow()
The ui_helpline__vshow() will be used for pr_* functions. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1352911664-24620-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
752914208a
commit
b56e53312d
@@ -8,6 +8,8 @@
|
||||
#include "../ui.h"
|
||||
#include "../libslang.h"
|
||||
|
||||
char ui_helpline__last_msg[1024];
|
||||
|
||||
static void tui_helpline__pop(void)
|
||||
{
|
||||
}
|
||||
@@ -23,20 +25,7 @@ static void tui_helpline__push(const char *msg)
|
||||
strncpy(ui_helpline__current, msg, sz)[sz - 1] = '\0';
|
||||
}
|
||||
|
||||
struct ui_helpline tui_helpline_fns = {
|
||||
.pop = tui_helpline__pop,
|
||||
.push = tui_helpline__push,
|
||||
};
|
||||
|
||||
void ui_helpline__init(void)
|
||||
{
|
||||
helpline_fns = &tui_helpline_fns;
|
||||
ui_helpline__puts(" ");
|
||||
}
|
||||
|
||||
char ui_helpline__last_msg[1024];
|
||||
|
||||
int ui_helpline__show_help(const char *format, va_list ap)
|
||||
static int tui_helpline__show(const char *format, va_list ap)
|
||||
{
|
||||
int ret;
|
||||
static int backlog;
|
||||
@@ -55,3 +44,15 @@ int ui_helpline__show_help(const char *format, va_list ap)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct ui_helpline tui_helpline_fns = {
|
||||
.pop = tui_helpline__pop,
|
||||
.push = tui_helpline__push,
|
||||
.show = tui_helpline__show,
|
||||
};
|
||||
|
||||
void ui_helpline__init(void)
|
||||
{
|
||||
helpline_fns = &tui_helpline_fns;
|
||||
ui_helpline__puts(" ");
|
||||
}
|
||||
|
Reference in New Issue
Block a user