From 9a7576fe2cdd169313b5e25be6bf485407adb496 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 7 Apr 2011 22:05:45 +0200 Subject: Move to macro-based logging checks in the C++ code No functions should be called for log statements that turn out to be inactive. --- src/rt/rust.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rt/rust.cpp') diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 46fcb22e..9600b4d5 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -87,10 +87,10 @@ rust_start(uintptr_t main_fn, rust_crate const *crate, int argc, rust_dom *dom = handle->referent(); command_line_args *args = new (dom) command_line_args(dom, argc, argv); - dom->log(rust_log::DOM, "startup: %d args in 0x%" PRIxPTR, + DLOG(dom, rust_log::DOM, "startup: %d args in 0x%" PRIxPTR, args->argc, (uintptr_t)args->args); for (int i = 0; i < args->argc; i++) { - dom->log(rust_log::DOM, + DLOG(dom, rust_log::DOM, "startup: arg[%d] = '%s'", i, args->argv[i]); } -- cgit v1.2.3