From 719f73c920523da484bf399761df19c044730284 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sat, 11 Aug 2012 02:41:18 +0200 Subject: Fix test_perf test_perf was still relying on the old behaviour of ul_openlog(): no more, it uses ul_set_log_flags() now. Signed-off-by: Gergely Nagy --- t/test_perf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/test_perf.c b/t/test_perf.c index f1eb628..c729c4b 100644 --- a/t/test_perf.c +++ b/t/test_perf.c @@ -30,7 +30,8 @@ test_perf_simple (int flags, unsigned long cnt) struct timespec st, et, dt; const char *fls; - openlog ("umberlog/test_perf_simple", flags, LOG_LOCAL0); + ul_openlog ("umberlog/test_perf_simple", 0, LOG_LOCAL0); + ul_set_log_flags (flags); clock_gettime (CLOCK_MONOTONIC, &st); for (i = 0; i < cnt; i++) @@ -40,7 +41,7 @@ test_perf_simple (int flags, unsigned long cnt) } clock_gettime (CLOCK_MONOTONIC, &et); - closelog (); + ul_closelog (); dt = ts_diff (st, et); -- cgit