libosmogapk: drop an 'osmo' prefix from internal log variables

It would be better to have an 'osmo_gapk' prefix for exposed
symbols only. Both internal logging variables aren't exposed,
so they shouldn't have one.
This commit is contained in:
Vadim Yanitskiy 2017-09-09 14:48:49 +03:00
parent 5cabe1eeec
commit 262ae0f98f
2 changed files with 8 additions and 8 deletions

View File

@ -20,9 +20,9 @@
#include <osmocom/core/logging.h>
extern int osmo_gapk_log_init_complete;
extern int osmo_gapk_log_subsys;
extern int gapk_log_init_complete;
extern int gapk_log_subsys;
#define LOGPGAPK(level, fmt, args...) \
if (osmo_gapk_log_init_complete) \
LOGP(osmo_gapk_log_subsys, level, fmt, ## args)
if (gapk_log_init_complete) \
LOGP(gapk_log_subsys, level, fmt, ## args)

View File

@ -28,11 +28,11 @@ void osmo_gapk_set_talloc_ctx(void *ctx)
}
/* Internal GAPK logging */
int osmo_gapk_log_init_complete = 0;
int osmo_gapk_log_subsys;
int gapk_log_init_complete = 0;
int gapk_log_subsys;
void osmo_gapk_log_init(int subsys)
{
osmo_gapk_log_subsys = subsys;
osmo_gapk_log_init_complete = 1;
gapk_log_subsys = subsys;
gapk_log_init_complete = 1;
}