summaryrefslogtreecommitdiff
path: root/lib/log.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2021-02-02 07:44:21 -0500
committerGitHub <noreply@github.com>2021-02-02 07:44:21 -0500
commit8f57f7413cae483fdae4c89842ddd6b0860d1b2b (patch)
treee55d40823268ab19e83ce7e1ea4fefaa3484edad /lib/log.c
parentb449f7dc10beb872f146c52ca6545afc4e582400 (diff)
parentacbf5146a98990850679903119d42c5dfb7cdf26 (diff)
Merge pull request #6766 from opensourcerouting/xref
lib: xrefs - general cross-references & unique IDs
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/log.c b/lib/log.c
index f7275589c2..b86d3022b4 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -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);
}
@@ -303,8 +304,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");
}