Skip to content

Commit

Permalink
add log_remove func too
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Jun 3, 2017
1 parent 81b4a87 commit 29b1654
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test-camera-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down Expand Up @@ -309,6 +309,7 @@ main (int argc, char *argv[])
}

CHECK (gp_abilities_list_free (al));
gp_log_remove_func (logid);
return (0);
}

Expand Down

0 comments on commit 29b1654

Please sign in to comment.