mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-05-04 06:46:32 -04:00
logging: Add PID, ClientName for debug logging
Add PID, ClientName to WAYLAND_DEBUG logging, which is pretty useful to distinguish which client send which message, especially in debugging. Add human-readable timestamp format is useful when log files loged wayland protocol messages and apps messages separately. Signed-off-by: zhenyan huang <wdsjhzy@163.com>
This commit is contained in:
parent
53fbc2b0c1
commit
c371bb99ce
7 changed files with 151 additions and 19 deletions
|
|
@ -46,6 +46,7 @@ have_funcs = [
|
|||
'memfd_create',
|
||||
'mremap',
|
||||
'strndup',
|
||||
'getpid',
|
||||
]
|
||||
foreach f: have_funcs
|
||||
config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue