diff options
| author | David Lamparter <equinox@diac24.net> | 2020-04-28 09:30:50 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-02-01 17:20:41 +0100 |
| commit | 60a3efec2458d9a1531f8204d0e4a91729d3fc00 (patch) | |
| tree | ad0208e9394bd9f2c08acb3791a77f97034ed821 /lib/log.c | |
| parent | b2fa8c0fa30eaa72943c07786312923614ef355a (diff) | |
lib/xref: use to transport thread_* file/line/func
Just a better way of doing what was previously the "debugargdef" macro.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/log.c')
| -rw-r--r-- | lib/log.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -161,8 +161,9 @@ void zlog_signal(int signo, const char *action, void *siginfo_v, if (!tc) bprintfrr(&fb, "no thread information available\n"); else - bprintfrr(&fb, "in thread %s scheduled from %s:%d\n", - tc->funcname, tc->schedfrom, tc->schedfrom_line); + bprintfrr(&fb, "in thread %s scheduled from %s:%d %s()\n", + tc->xref->funcname, tc->xref->xref.file, + tc->xref->xref.line, tc->xref->xref.func); zlog_sigsafe(fb.buf, fb.pos - fb.buf); } @@ -300,8 +301,9 @@ void zlog_thread_info(int log_level) if (tc) zlog(log_level, - "Current thread function %s, scheduled from file %s, line %u", - tc->funcname, tc->schedfrom, tc->schedfrom_line); + "Current thread function %s, scheduled from file %s, line %u in %s()", + tc->xref->funcname, tc->xref->xref.file, + tc->xref->xref.line, tc->xref->xref.func); else zlog(log_level, "Current thread not known/applicable"); } |
