]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/zlog.c
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / lib / zlog.c
index e05720fd9e7a8d87ddbf83a2b2b296f840e99515..309a955fa90a52ad27d4236ab2ee746f3b923eb8 100644 (file)
@@ -48,7 +48,7 @@
 #include "frrcu.h"
 #include "zlog.h"
 #include "libfrr_trace.h"
-#include "thread.h"
+#include "frrevent.h"
 
 DEFINE_MTYPE_STATIC(LIB, LOG_MESSAGE,  "log message");
 DEFINE_MTYPE_STATIC(LIB, LOG_TLSBUF,   "log thread-local buffer");
@@ -506,7 +506,7 @@ static void vzlog_tls(struct zlog_tls *zlog_tls, const struct xref_logmsg *xref,
 
 static void zlog_backtrace_msg(const struct xref_logmsg *xref, int prio)
 {
-       struct thread *tc = pthread_getspecific(thread_current);
+       struct event *tc = pthread_getspecific(thread_current);
        const char *uid = xref->xref.xrefdata->uid;
        bool found_thread = false;