mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-23 05:35:51 -04:00
Merge branch 'main' into 'main'
log: expose wl_debug_handler for custom print debug message See merge request wayland/wayland!466
This commit is contained in:
commit
5e2d6e3a2e
8 changed files with 33 additions and 1 deletions
|
|
@ -455,8 +455,19 @@ wl_log_stderr_handler(const char *fmt, va_list arg)
|
|||
vfprintf(stderr, fmt, arg);
|
||||
}
|
||||
|
||||
wl_debug_func_t wl_debug_handler = wl_log_stderr_handler;
|
||||
wl_log_func_t wl_log_handler = wl_log_stderr_handler;
|
||||
|
||||
void
|
||||
wl_debug(const char *fmt, ...)
|
||||
{
|
||||
va_list argp;
|
||||
|
||||
va_start(argp, fmt);
|
||||
wl_debug_handler(fmt, argp);
|
||||
va_end(argp);
|
||||
}
|
||||
|
||||
void
|
||||
wl_log(const char *fmt, ...)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue