From 28202631fecbc3b20a55cfc5fa339663db37e955 Mon Sep 17 00:00:00 2001 From: Zhang Huan Date: Tue, 5 Dec 2017 12:45:46 +0800 Subject: libglusterfs: specify ctx in gf_log_set_loglevel specify ctx in gf_log_set_loglevel, instead of getting it from a thread specific variable. Change-Id: I498f826e8e32231235a6b0005026a27c327727fd BUG: 1521213 Signed-off-by: Zhang Huan --- tests/basic/logchecks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/basic/logchecks.c b/tests/basic/logchecks.c index 58b57003640..a40278b0d77 100644 --- a/tests/basic/logchecks.c +++ b/tests/basic/logchecks.c @@ -162,14 +162,14 @@ main (int argc, char *argv[]) /* TEST 6: Change level */ gf_msg ("logchecks", GF_LOG_ALERT, 0, logchecks_msg_11); - gf_log_set_loglevel (GF_LOG_CRITICAL); + gf_log_set_loglevel (ctx, GF_LOG_CRITICAL); gf_msg ("logchecks", GF_LOG_ALERT, 0, logchecks_msg_15); go_log (); gf_msg ("logchecks", GF_LOG_ALERT, 0, logchecks_msg_11); /* Reset to run with syslog */ gf_log_set_logformat (gf_logformat_withmsgid); - gf_log_set_loglevel (GF_LOG_INFO); + gf_log_set_loglevel (ctx, GF_LOG_INFO); /* Run tests with logger changed to syslog */ /* TEST 7: No more gluster logs */ @@ -188,7 +188,7 @@ main (int argc, char *argv[]) /* TEST 9: Change level */ gf_msg ("logchecks", GF_LOG_ALERT, 0, logchecks_msg_11); - gf_log_set_loglevel (GF_LOG_CRITICAL); + gf_log_set_loglevel (ctx, GF_LOG_CRITICAL); gf_msg ("logchecks", GF_LOG_ALERT, 0, logchecks_msg_15); go_log (); gf_msg ("logchecks", GF_LOG_ALERT, 0, logchecks_msg_11); -- cgit