diff options
| author | Russ White <russ@riw.us> | 2021-02-02 07:44:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-02 07:44:21 -0500 |
| commit | 8f57f7413cae483fdae4c89842ddd6b0860d1b2b (patch) | |
| tree | e55d40823268ab19e83ce7e1ea4fefaa3484edad /lib/log.c | |
| parent | b449f7dc10beb872f146c52ca6545afc4e582400 (diff) | |
| parent | acbf5146a98990850679903119d42c5dfb7cdf26 (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.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); } @@ -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"); } |
