summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af8bdc6)
raw | patch | inline | side by side (parent: af8bdc6)
author | Florian Forster <octo@collectd.org> | |
Wed, 15 Jul 2015 07:57:41 +0000 (09:57 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 15 Jul 2015 07:57:41 +0000 (09:57 +0200) |
The test fails on some i386 architectures. Time for some printf debugging.
src/utils_latency_test.c | patch | blob | history |
index 9aecf38c1ab24fe473bd46b2439fd6b701304037..9b954e0d7ad0469ed79ca5d37b50a39f7254a22b 100644 (file)
--- a/src/utils_latency_test.c
+++ b/src/utils_latency_test.c
CHECK_NOT_NULL (l = latency_counter_create ());
for (i = 0; i < STATIC_ARRAY_SIZE (cases); i++) {
+ printf ("# case %zu: DOUBLE_TO_CDTIME_T(%g) = %"PRIu64"\n",
+ i, cases[i].val, DOUBLE_TO_CDTIME_T (cases[i].val));
latency_counter_add (l, DOUBLE_TO_CDTIME_T (cases[i].val));
DBLEQ (cases[i].min, CDTIME_T_TO_DOUBLE (latency_counter_get_min (l)));