mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-25 21:35:42 +03:00
Logging: log using the log var names directly.
Currently we have to log by writing something like:
static log_var_t log_a_b_c = LOG_VAR_INIT("a.b.c");
log (log_a_b_c, "msg");
This is sort of annoying. Let's just write:
log("a.b.c", "msg");
This commit is contained in:
parent
b28f31e7ed
commit
e6aeceb606
3 changed files with 51 additions and 155 deletions
|
|
@ -176,8 +176,7 @@ TEST_END
|
|||
*/
|
||||
TEST_BEGIN(test_log_only_format_string) {
|
||||
if (false) {
|
||||
static log_var_t l = LOG_VAR_INIT("str");
|
||||
log(l, "No arguments follow this format string.");
|
||||
log("log_str", "No arguments follow this format string.");
|
||||
}
|
||||
}
|
||||
TEST_END
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue