mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
parent
9e47199028
commit
b8980528c0
@ -54,6 +54,7 @@ static int parse_condition(Unit *u, const char *line) {
|
||||
_printf_(7, 8)
|
||||
static int log_helper(void *userdata, int level, int error, const char *file, int line, const char *func, const char *format, ...) {
|
||||
Unit *u = ASSERT_PTR(userdata);
|
||||
Manager *m = ASSERT_PTR(u->manager);
|
||||
va_list ap;
|
||||
int r;
|
||||
|
||||
@ -62,10 +63,10 @@ static int log_helper(void *userdata, int level, int error, const char *file, in
|
||||
|
||||
va_start(ap, format);
|
||||
r = log_object_internalv(level, error, file, line, func,
|
||||
NULL,
|
||||
u->id,
|
||||
NULL,
|
||||
NULL,
|
||||
/* object_field = */ m->unit_log_field,
|
||||
/* object = */ u->id,
|
||||
/* extra_field = */ NULL,
|
||||
/* extra = */ NULL,
|
||||
format, ap);
|
||||
va_end(ap);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user