Skip to content
Snippets Groups Projects
Commit f0984bb1 authored by Guy Zana's avatar Guy Zana
Browse files

Add thread identifier to debug output

parent 140d7c72
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
#include <iomanip>
#include "boost/format.hpp"
#include "drivers/console.hh"
#include "sched.hh"
#include "debug.hh"
using namespace std;
......@@ -95,7 +96,8 @@ void logger::log(const char* tag, logger_severity severity, const boost::format&
return;
}
debug(fmt("[%s/%s]: ") % loggable_severity(severity) % tag, false);
unsigned long tid = sched::thread::current()->id();
debug(fmt("[%s/%d %s]: ") % loggable_severity(severity) % tid % tag, false);
debug(_fmt, true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment