diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-04-07 22:05:45 +0200 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-04-07 15:15:30 -0700 |
| commit | 9a7576fe2cdd169313b5e25be6bf485407adb496 (patch) | |
| tree | 36f5c9a5baaae95be1fb3cdc9b5b76814b08e803 /src/rt/rust_timer.cpp | |
| parent | 6dcf6218b1e0e70e60afe8d1a9f336adad060362 (diff) | |
| download | rust-9a7576fe2cdd169313b5e25be6bf485407adb496.tar.gz rust-9a7576fe2cdd169313b5e25be6bf485407adb496.zip | |
Move to macro-based logging checks in the C++ code
No functions should be called for log statements that turn out to be inactive.
Diffstat (limited to 'src/rt/rust_timer.cpp')
| -rw-r--r-- | src/rt/rust_timer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_timer.cpp b/src/rt/rust_timer.cpp index e4fbd6a94f8..40044e03678 100644 --- a/src/rt/rust_timer.cpp +++ b/src/rt/rust_timer.cpp @@ -30,7 +30,7 @@ timer_loop(void *ptr) { // We were handed the rust_timer that owns us. rust_timer *timer = (rust_timer *)ptr; rust_dom *dom = timer->dom; - dom->log(rust_log::TIMER, "in timer 0x%" PRIxPTR, (uintptr_t)timer); + DLOG(dom, rust_log::TIMER, "in timer 0x%" PRIxPTR, (uintptr_t)timer); size_t ms = TIME_SLICE_IN_MS; while (!timer->exit_flag) { @@ -39,7 +39,7 @@ timer_loop(void *ptr) { #else usleep(ms * 1000); #endif - dom->log(rust_log::TIMER, "timer 0x%" PRIxPTR + DLOG(dom, rust_log::TIMER, "timer 0x%" PRIxPTR " interrupting domain 0x%" PRIxPTR, (uintptr_t) timer, (uintptr_t) dom); dom->interrupt_flag = 1; @@ -54,7 +54,7 @@ timer_loop(void *ptr) { rust_timer::rust_timer(rust_dom *dom) : dom(dom), exit_flag(0) { - dom->log(rust_log::TIMER, "creating timer for domain 0x%" PRIxPTR, dom); + DLOG(dom, rust_log::TIMER, "creating timer for domain 0x%" PRIxPTR, dom); #if defined(__WIN32__) thread = CreateThread(NULL, 0, timer_loop, this, 0, NULL); dom->win32_require("CreateThread", thread != NULL); |
