diff options
Diffstat (limited to 'xorg-server/hw/xquartz/darwin.c')
-rw-r--r-- | xorg-server/hw/xquartz/darwin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xorg-server/hw/xquartz/darwin.c b/xorg-server/hw/xquartz/darwin.c index fa8d4ced2..29ab83677 100644 --- a/xorg-server/hw/xquartz/darwin.c +++ b/xorg-server/hw/xquartz/darwin.c @@ -79,7 +79,7 @@ aslclient aslc; -void debug_asl (const char *file, const char *function, int line, const char *fmt, ...) { +void xq_asl_log (int level, const char *subsystem, const char *file, const char *function, int line, const char *fmt, ...) { va_list args; aslmsg msg = asl_new(ASL_TYPE_MSG); @@ -93,10 +93,12 @@ void debug_asl (const char *file, const char *function, int line, const char *fm asl_set(msg, "Line", _line); free(_line); } + if(subsystem) + asl_set(msg, "Subsystem", subsystem); } va_start(args, fmt); - asl_vlog(aslc, msg, ASL_LEVEL_DEBUG, fmt, args); + asl_vlog(aslc, msg, level, fmt, args); va_end(args); if(msg) |