Make symbol resolution failures log under rust_log::ERR flag as well.
This commit is contained in:
parent
86f1ace55b
commit
99682db53c
@ -120,7 +120,8 @@ rust_crate_cache::rust_sym::rust_sym(rust_dom *dom,
|
|||||||
if (found_leaf) {
|
if (found_leaf) {
|
||||||
dom->log(rust_log::CACHE, "resolved symbol to 0x%" PRIxPTR, val);
|
dom->log(rust_log::CACHE, "resolved symbol to 0x%" PRIxPTR, val);
|
||||||
} else {
|
} else {
|
||||||
dom->log(rust_log::CACHE, "failed to resolve symbol");
|
dom->log(rust_log::CACHE | rust_log::ERR,
|
||||||
|
"failed to resolve symbol");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -535,8 +535,8 @@ upcall_require_c_sym(rust_task *task,
|
|||||||
task->log(rust_log::UPCALL | rust_log::CACHE,
|
task->log(rust_log::UPCALL | rust_log::CACHE,
|
||||||
"found-or-cached addr: 0x%" PRIxPTR, addr);
|
"found-or-cached addr: 0x%" PRIxPTR, addr);
|
||||||
} else {
|
} else {
|
||||||
task->log(rust_log::UPCALL | rust_log::CACHE,
|
task->log(rust_log::UPCALL | rust_log::CACHE | rust_log::ERR,
|
||||||
"failed to resolve symbol");
|
"failed to resolve symbol %s in %s", symbol, library);
|
||||||
task->fail(6);
|
task->fail(6);
|
||||||
}
|
}
|
||||||
return addr;
|
return addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user