Fix error.h non-static variables for liblttng-ctl
authorDavid Goulet <dgoulet@efficios.com>
Tue, 6 Mar 2012 16:16:26 +0000 (11:16 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 6 Mar 2012 16:22:01 +0000 (11:22 -0500)
commit97e190465f6a2a7d5bf72f445bb4d9d8544a0916
treef29aad0971c85f81545dcebbc357b11b7570a7ac
parent5bbf8b1b7cb4cc72bd96917de7dac906d2628161
Fix error.h non-static variables for liblttng-ctl

Linking with liblttng-ctl made the variable opt_quiet and opt_verbose
undefined if nonexistent in the linked application.

Rename the variables adding the prefix lttng_* and declaring them in
liblttng-ctl as global variable. The user can now control the verbosity
of the library by simply setting them.

Future work will mostly add an API call to control verbosity.

(closes #151)

Signed-off-by: David Goulet <dgoulet@efficios.com>
13 files changed:
src/bin/lttng-consumerd/lttng-consumerd.c
src/bin/lttng-sessiond/main.c
src/bin/lttng/lttng.c
src/common/error.h
src/common/sessiond-comm/sessiond-comm.c
src/lib/lttng-ctl/lttng-ctl.c
tests/lttng/kernel_all_events_basic.c
tests/lttng/kernel_event_basic.c
tests/lttng/ust_global_all_events_basic.c
tests/lttng/ust_global_event_basic.c
tests/test_kernel_data_trace.c
tests/test_sessions.c
tests/test_ust_data_trace.c
This page took 0.030197 seconds and 4 git commands to generate.