mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
perf ui helpline: Provide a printf variant
To print some values, like in the annotation code with invalid jump offsets. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
2471cece40
commit
9484b86e9c
2 changed files with 11 additions and 0 deletions
|
|
@ -72,3 +72,13 @@ int ui_helpline__vshow(const char *fmt, va_list ap)
|
|||
{
|
||||
return helpline_fns->show(fmt, ap);
|
||||
}
|
||||
|
||||
void ui_helpline__printf(const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
ui_helpline__pop();
|
||||
va_start(ap, fmt);
|
||||
ui_helpline__vpush(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ void ui_helpline__push(const char *msg);
|
|||
void ui_helpline__vpush(const char *fmt, va_list ap);
|
||||
void ui_helpline__fpush(const char *fmt, ...);
|
||||
void ui_helpline__puts(const char *msg);
|
||||
void ui_helpline__printf(const char *fmt, ...);
|
||||
int ui_helpline__vshow(const char *fmt, va_list ap);
|
||||
|
||||
extern char ui_helpline__current[512];
|
||||
|
|
|
|||
Loading…
Reference in a new issue