From 29b16546b603473e36db20ceda09ad84bb3cefa8 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 3 Jun 2017 17:50:04 +0200 Subject: add log_remove func too --- tests/test-camera-list.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-camera-list.c b/tests/test-camera-list.c index 619f26b73..6a21e86f9 100644 --- a/tests/test-camera-list.c +++ b/tests/test-camera-list.c @@ -184,13 +184,13 @@ main (int argc, char *argv[]) int count; const char *fmt_str = NULL; char lastmodel[200]; + int logid = -1; parse_command_line (argc, argv); if (do_debug) { gettimeofday (&glob_tv_zero, NULL); - CHECK (gp_log_add_func (GP_LOG_ALL, debug_func, NULL)); - + CHECK (logid = gp_log_add_func (GP_LOG_ALL, debug_func, NULL)); gp_log (GP_LOG_DEBUG, "main", "test-camera-list start"); } @@ -309,6 +309,7 @@ main (int argc, char *argv[]) } CHECK (gp_abilities_list_free (al)); + gp_log_remove_func (logid); return (0); } -- cgit v1.2.1