diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-06-28 12:15:41 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-06-28 16:12:33 -0700 |
| commit | 657e5a2bd579f7f1698f8ba88cb1142ced7a477f (patch) | |
| tree | 46ed664d666330679e343cde537b9d9e3f33b3e3 /src/rt/rust_log.cpp | |
| parent | 02f6645fca946fd7cb9f55036c05a908f0567ceb (diff) | |
| download | rust-657e5a2bd579f7f1698f8ba88cb1142ced7a477f.tar.gz rust-657e5a2bd579f7f1698f8ba88cb1142ced7a477f.zip | |
Renamed what's left of rust_dom to rust_scheduler
Diffstat (limited to 'src/rt/rust_log.cpp')
| -rw-r--r-- | src/rt/rust_log.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index 01e92e1f23d..a2ab77b1b55 100644 --- a/src/rt/rust_log.cpp +++ b/src/rt/rust_log.cpp @@ -23,9 +23,9 @@ static const char * _foreground_colors[] = { "[37m", static lock_and_signal _log_lock; static uint32_t _last_thread_id; -rust_log::rust_log(rust_srv *srv, rust_dom *dom) : +rust_log::rust_log(rust_srv *srv, rust_scheduler *sched) : _srv(srv), - _dom(dom), + _sched(sched), _use_colors(getenv("RUST_COLOR_LOG")) { } @@ -104,12 +104,12 @@ rust_log::trace_ln(rust_task *task, uint32_t level, char *message) { uint32_t thread_id = hash((uint32_t) pthread_self()); #endif char prefix[BUF_BYTES] = ""; - if (_dom && _dom->name) { + if (_sched && _sched->name) { append_string(prefix, "%04" PRIxPTR ":%.10s:", - thread_id, _dom->name); + thread_id, _sched->name); } else { append_string(prefix, "%04" PRIxPTR ":0x%08" PRIxPTR ":", - thread_id, (uintptr_t) _dom); + thread_id, (uintptr_t) _sched); } if (task) { if (task->name) { |
