From f94339cc1c98a1ae3ee3beb94c848009167a58d9 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 3 Feb 2012 12:47:01 -0800 Subject: rt: Rename rust_scheduler to rust_task_thread --- src/rt/rust_log.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/rt/rust_log.cpp') diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index 61b1fe9aaa0..729ca2462e8 100644 --- a/src/rt/rust_log.cpp +++ b/src/rt/rust_log.cpp @@ -40,9 +40,9 @@ log_console_off(rust_env *env) { } } -rust_log::rust_log(rust_srv *srv, rust_scheduler *sched) : +rust_log::rust_log(rust_srv *srv, rust_task_thread *thread) : _srv(srv), - _sched(sched) { + _thread(thread) { } rust_log::~rust_log() { @@ -118,12 +118,12 @@ rust_log::trace_ln(rust_task *task, uint32_t level, char *message) { #endif char prefix[BUF_BYTES] = ""; - if (_sched && _sched->name) { + if (_thread && _thread->name) { append_string(prefix, "%04" PRIxPTR ":%.10s:", - thread_id, _sched->name); + thread_id, _thread->name); } else { append_string(prefix, "%04" PRIxPTR ":0x%08" PRIxPTR ":", - thread_id, (uintptr_t) _sched); + thread_id, (uintptr_t) _thread); } if (task) { if (task->name) { -- cgit 1.4.1-3-g733a5