summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Goldblatt <davidgoldblatt@fb.com>2017-07-24 19:29:28 (GMT)
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2017-07-24 21:55:54 (GMT)
commite6aeceb6068ace14ca530506fdfeb5f1cadd9a19 (patch)
treedd1c0e18870a03df7f8370711d57624ef5cf6889 /test
parentb28f31e7ed6c987bdbf3bdd9ce4aa63245926b4d (diff)
downloadjemalloc-e6aeceb6068ace14ca530506fdfeb5f1cadd9a19.zip
jemalloc-e6aeceb6068ace14ca530506fdfeb5f1cadd9a19.tar.gz
jemalloc-e6aeceb6068ace14ca530506fdfeb5f1cadd9a19.tar.bz2
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");
Diffstat (limited to 'test')
-rw-r--r--test/unit/log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/log.c b/test/unit/log.c
index 053fea4..3c1a208 100644
--- a/test/unit/log.c
+++ b/test/unit/log.c
@@ -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