diff options
| author | Marijn Haverbeke <[email protected]> | 2011-04-19 10:15:26 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-04-19 16:57:13 +0200 |
| commit | 9bfc8bf11e15b7b9a782f1757f9a0ebe324b16e4 (patch) | |
| tree | 688d5ac52ff6cdcdeb364dfe4b418370a9aee5ab /src/rt | |
| parent | Precision overrides 0-padding in #fmt (diff) | |
| download | rust-9bfc8bf11e15b7b9a782f1757f9a0ebe324b16e4.tar.xz rust-9bfc8bf11e15b7b9a782f1757f9a0ebe324b16e4.zip | |
Add log_err to rustboot
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 6318b6e2..b022b853 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -29,28 +29,28 @@ upcall_grow_task(rust_task *task, size_t n_frame_bytes) { } extern "C" CDECL -void upcall_log_int(rust_task *task, int32_t i) { +void upcall_log_int(rust_task *task, int32_t level, int32_t i) { LOG_UPCALL_ENTRY(task); LOG(task, rust_log::UPCALL | rust_log::ULOG, "rust: %" PRId32 " (0x%" PRIx32 ")", i, i); } extern "C" CDECL -void upcall_log_float(rust_task *task, float f) { +void upcall_log_float(rust_task *task, int32_t level, float f) { LOG_UPCALL_ENTRY(task); LOG(task, rust_log::UPCALL | rust_log::ULOG, "rust: %12.12f", f); } extern "C" CDECL -void upcall_log_double(rust_task *task, double *f) { +void upcall_log_double(rust_task *task, int32_t level, double *f) { LOG_UPCALL_ENTRY(task); LOG(task, rust_log::UPCALL | rust_log::ULOG, "rust: %12.12f", *f); } extern "C" CDECL void -upcall_log_str(rust_task *task, rust_str *str) { +upcall_log_str(rust_task *task, int32_t level, rust_str *str) { LOG_UPCALL_ENTRY(task); const char *c = str_buf(task, str); LOG(task, rust_log::UPCALL | rust_log::ULOG, "rust: %s", c); |