diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2025-01-15 16:13:19 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2025-01-15 19:34:11 +0100 |
commit | b8980528c00061741e0119e1940915d5c90ec522 (patch) | |
tree | 14ce1061de4d351b7919932bdda0c85cfb380d21 /src/analyze/analyze-condition.c | |
parent | curl-util: use curl_getdate instead of implementing http spec (diff) | |
download | systemd-b8980528c00061741e0119e1940915d5c90ec522.tar.xz systemd-b8980528c00061741e0119e1940915d5c90ec522.zip |
analyze: fix assignment of object_field
Prompted by #36000.
Diffstat (limited to '')
-rw-r--r-- | src/analyze/analyze-condition.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/analyze/analyze-condition.c b/src/analyze/analyze-condition.c index 1e9136d7c0..e7871060fe 100644 --- a/src/analyze/analyze-condition.c +++ b/src/analyze/analyze-condition.c @@ -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); |